vector

package
v1.22.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL