Documentation
¶
Overview ¶
Package nlock provides a lock that can be locked n times simultaneously.
Deprecated: this can be implemented using a channel with n items.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NLock ¶
type NLock struct {
// contains filtered or unexported fields
}
An NLock is a lock that allows n holders to hold the lock simultaneously.
func (*NLock) Lock ¶
func (n *NLock) Lock()
Lock locks the lock. Will block if n calls to lock were made, that were not unlocked.
Click to show internal directories.
Click to hide internal directories.