Documentation
¶
Overview ¶
Package cidlocker is used to provide granular concurrent resource access control on a per-CID basis.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CIDLocker ¶
type CIDLocker struct {
// contains filtered or unexported fields
}
CIDLocker is used to block access to resources on a per-CID basis, useful when guarding concurrent access in systems handling many different CIDs (like reference counting)
The only time this blocks is when creating the initial lock, afterwards all writes for a record are non-blocking unless another record is first published at the same time.
func (*CIDLocker) Create ¶
Create is like exists, except it populates the map if the entry does not exist
Click to show internal directories.
Click to hide internal directories.