Documentation
¶
Index ¶
- Constants
- type ShardedLocks
- func (sl *ShardedLocks) Lock(id uint64)
- func (sl *ShardedLocks) LockAll()
- func (sl *ShardedLocks) Locked(id uint64, callback func())
- func (sl *ShardedLocks) LockedAll(callback func())
- func (sl *ShardedLocks) RLock(id uint64)
- func (sl *ShardedLocks) RLockAll()
- func (sl *ShardedLocks) RLocked(id uint64, callback func())
- func (sl *ShardedLocks) RLockedAll(callback func())
- func (sl *ShardedLocks) RUnlock(id uint64)
- func (sl *ShardedLocks) RUnlockAll()
- func (sl *ShardedLocks) Unlock(id uint64)
- func (sl *ShardedLocks) UnlockAll()
Constants ¶
View Source
const DefaultShardedLocksCount = 512
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShardedLocks ¶
type ShardedLocks struct {
// contains filtered or unexported fields
}
func NewDefaultShardedLocks ¶
func NewDefaultShardedLocks() *ShardedLocks
func NewShardedLocks ¶
func NewShardedLocks(count int) *ShardedLocks
func (*ShardedLocks) Lock ¶
func (sl *ShardedLocks) Lock(id uint64)
func (*ShardedLocks) LockAll ¶
func (sl *ShardedLocks) LockAll()
func (*ShardedLocks) Locked ¶
func (sl *ShardedLocks) Locked(id uint64, callback func())
func (*ShardedLocks) LockedAll ¶
func (sl *ShardedLocks) LockedAll(callback func())
func (*ShardedLocks) RLock ¶
func (sl *ShardedLocks) RLock(id uint64)
func (*ShardedLocks) RLockAll ¶
func (sl *ShardedLocks) RLockAll()
func (*ShardedLocks) RLocked ¶
func (sl *ShardedLocks) RLocked(id uint64, callback func())
func (*ShardedLocks) RLockedAll ¶
func (sl *ShardedLocks) RLockedAll(callback func())
func (*ShardedLocks) RUnlock ¶
func (sl *ShardedLocks) RUnlock(id uint64)
func (*ShardedLocks) RUnlockAll ¶
func (sl *ShardedLocks) RUnlockAll()
func (*ShardedLocks) Unlock ¶
func (sl *ShardedLocks) Unlock(id uint64)
func (*ShardedLocks) UnlockAll ¶
func (sl *ShardedLocks) UnlockAll()
Directories
¶
Path | Synopsis |
---|---|
distancer/asm
asm only has amd64 specific implementations at the moment
|
asm only has amd64 specific implementations at the moment |
Click to show internal directories.
Click to hide internal directories.