Documentation ¶
Overview ¶
Package namedmutex provides NamedMutex that wraps sync.Mutex and provides namespaced mutex.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamedMutex ¶
type NamedMutex struct {
// contains filtered or unexported fields
}
NamedMutex wraps sync.Mutex and provides namespaced mutex.
func (*NamedMutex) Lock ¶
func (nl *NamedMutex) Lock(name string)
Lock locks the mutex of the given name
func (*NamedMutex) Unlock ¶
func (nl *NamedMutex) Unlock(name string)
Unlock unlocks the mutex of the given name
Click to show internal directories.
Click to hide internal directories.