Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyLocker ¶
type KeyLocker struct {
// contains filtered or unexported fields
}
KeyLocker global locker based on key
func NewKeyLockerInstance ¶ added in v0.8.9
func NewKeyLockerInstance() *KeyLocker
NewKeyLockerInstance new key locker instance
type KeyLockerGrp ¶ added in v0.8.9
type KeyLockerGrp struct {
// contains filtered or unexported fields
}
func (*KeyLockerGrp) Lock ¶ added in v0.8.9
func (w *KeyLockerGrp) Lock(key interface{})
Lock write lock
func (*KeyLockerGrp) RLock ¶ added in v0.8.9
func (w *KeyLockerGrp) RLock(key interface{})
RLock read lock
func (*KeyLockerGrp) RULock ¶ added in v0.8.9
func (w *KeyLockerGrp) RULock(key interface{})
RULock read unlock
func (*KeyLockerGrp) Unlock ¶ added in v0.8.9
func (w *KeyLockerGrp) Unlock(key interface{})
Unlock write unlock
type Locker ¶ added in v0.8.9
type Locker interface {
//Lock write lock
Lock(key interface{})
//Unlock write unlock
Unlock(key interface{})
//RLock read lock
RLock(key interface{})
//RULock read unlock
RULock(key interface{})
}
func NewKeyLockeGrp ¶ added in v0.8.9
NewKeyLockeGrp new wide key locker group
func NewXHashKeyLockeGrp ¶ added in v0.8.9
NewXHashKeyLockeGrp new wide key locker group
Click to show internal directories.
Click to hide internal directories.