counter

package
v0.2.2-buildfails Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Openers

type Openers struct {
	// contains filtered or unexported fields
}

func NewOpenersCounter

func NewOpenersCounter() *Openers

func (*Openers) AddOpener

func (l *Openers) AddOpener(repoPath string) error

AddOpener messages that an FSRepo holds a handle to the repo at this path. This method is not thread-safe. The caller must have this object locked.

func (*Openers) NumOpeners

func (l *Openers) NumOpeners(repoPath string) int

NumOpeners returns the number of FSRepos holding a handle to the repo at this path. This method is not thread-safe. The caller must have this object locked.

func (*Openers) RemoveOpener

func (l *Openers) RemoveOpener(repoPath string) error

RemoveOpener messgaes that an FSRepo no longer holds a handle to the repo at this path. This method is not thread-safe. The caller must have this object locked.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL