Documentation ¶
Overview ¶
Package qidpool manages pools of 9P Qids, 13-bit unique identifiers for files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
A Pool maintains a pool of unique 13-bit identifiers for files on a 9P file server. A Pool must be created with a call to New.
func (*Pool) Del ¶
Del removes a Qid from a Pool. Once a Qid is removed from a pool, it will never be used again.
func (*Pool) Do ¶
func (p *Pool) Do(fn func(map[interface{}]interface{}))
Do calls fn while holding the write lock for the pool
func (*Pool) Get ¶
Get fetches the Qid currently associated with name from the pool. The Qid is only valid if the second return value is true.
Click to show internal directories.
Click to hide internal directories.