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) RUnlock ¶ added in v1.2.1
func (w *KeyLockerGrp) RUnlock(key interface{})
RUnlock 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{})
//RUnlock read unlock
RUnlock(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.