Discover Packages
github.com/GLYASAI/rainbond
pkg
entrance
cluster
package
Version:
v3.4.2+incompatible
Opens a new window with list of versions in this module.
Published: Feb 1, 2018
License: LGPL-3.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types type Manager type Mutex NewManager(c) (m) GetName() (m) GetPrefix() New(key, ttl, c) (m) Lock() (m) Unlock()
Documentation
¶
A Mutex is a mutual exclusion lock which is distributed across a cluster.
New creates a Mutex with the given key which must be the same
across the cluster nodes.
Lock locks m.
If the lock is already in use, the calling goroutine
blocks until the mutex is available.
Unlock unlocks m.
It is a run-time error if m is not locked on entry to Unlock.
A locked Mutex is not associated with a particular goroutine.
It is allowed for one goroutine to lock a Mutex and then
arrange for another goroutine to unlock it.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.