Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitUntilLock ¶
func WaitUntilLock(mutex MutexTable, key string, timeout, sleep time.Duration) bool
Types ¶
type MemoryMutexTable ¶
type MemoryMutexTable struct {
// contains filtered or unexported fields
}
func NewMemoryMutexTable ¶
func NewMemoryMutexTable(requestBuffer int) *MemoryMutexTable
func (MemoryMutexTable) IsLocked ¶
func (mt MemoryMutexTable) IsLocked(key string) bool
func (*MemoryMutexTable) Lock ¶
func (mt *MemoryMutexTable) Lock(key string) bool
func (*MemoryMutexTable) Unlock ¶
func (mt *MemoryMutexTable) Unlock(key string) bool
Click to show internal directories.
Click to hide internal directories.