import "aqwari.net/net/styx/internal/qidpool"
Package qidpool manages pools of 9P Qids, 13-bit unique identifiers for files.
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.
New returns a new, empty Pool.
Del removes a Qid from a Pool. Once a Qid is removed from a pool, it will never be used again.
Do calls fn while holding the write lock for the pool
Get fetches the Qid currently associated with name from the pool. The Qid is only valid if the second return value is true.
Put creates a new, unique Qid of the given type and adds it to the pool. The returned Qid should be considered read-only. Put will not overwrite an existing Qid; if there is already a Qid associated with name, it is returned instead.
Package qidpool imports 3 packages (graph) and is imported by 4 packages. Updated 2020-07-29. Refresh now. Tools for package owners.