Documentation ¶
Index ¶
- func Sleep(nanos time.Duration)
- func SleepUnsafe(nanos time.Duration)
- type RWLock
- func (rw RWLock) Lock()
- func (rw RWLock) LockShared()
- func (rw RWLock) LockSharedUnsafe()
- func (rw RWLock) LockUnsafe()
- func (rw RWLock) TryLock() bool
- func (rw RWLock) TryLockShared() bool
- func (rw RWLock) TryLockSharedUnsafe() bool
- func (rw RWLock) TryLockUnsafe() bool
- func (rw RWLock) Unlock()
- func (rw RWLock) UnlockShared()
- func (rw RWLock) UnlockSharedUnsafe()
- func (rw RWLock) UnlockUnsafe()
- type RWLockPointer
- type RWTicketLock64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SleepUnsafe ¶
Types ¶
type RWLock ¶
type RWLock struct {
// contains filtered or unexported fields
}
RWLock is a C++ based Read/Write spinlock tuned for performance. It performs slightly better than a Go sync.RWMutex, however both native code and Go code can use it. If staying in Go, use sync.RWMutex. It will lock a Go scheduler thread up so use it intelligently.
func (RWLock) LockShared ¶
func (rw RWLock) LockShared()
func (RWLock) LockSharedUnsafe ¶
func (rw RWLock) LockSharedUnsafe()
func (RWLock) LockUnsafe ¶
func (rw RWLock) LockUnsafe()
func (RWLock) TryLockShared ¶
func (RWLock) TryLockSharedUnsafe ¶
func (RWLock) TryLockUnsafe ¶
func (RWLock) UnlockShared ¶
func (rw RWLock) UnlockShared()
func (RWLock) UnlockSharedUnsafe ¶
func (rw RWLock) UnlockSharedUnsafe()
func (RWLock) UnlockUnsafe ¶
func (rw RWLock) UnlockUnsafe()
type RWLockPointer ¶
type RWLockPointer struct {
RWLock
}
func NewLock ¶
func NewLock() RWLockPointer
func (RWLockPointer) Close ¶
func (rw RWLockPointer) Close() error
func (*RWLockPointer) Free ¶
func (rw *RWLockPointer) Free()
type RWTicketLock64 ¶
type RWTicketLock64 struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.