Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
Bool is an atomic Boolean. It stores the bool as a uint32 internally. This is to use the uint32 atomic functions available in golang
func (*Bool) CompareAndSwap ¶
CAS is an atomic compare-and-swap.
type Int32 ¶
type Int32 struct {
// contains filtered or unexported fields
}
func (*Int32) CompareAndSwap ¶
CAS is an atomic compare-and-swap.
type NonBlockingLock ¶
type NonBlockingLock interface { TryLock() bool Release() }
Lock that provides TryLock method instead of blocking lock
func NewNonBlockingLock ¶
func NewNonBlockingLock() NonBlockingLock
type Uint32 ¶
type Uint32 struct {
// contains filtered or unexported fields
}
func (*Uint32) CompareAndSwap ¶
CAS is an atomic compare-and-swap.
Click to show internal directories.
Click to hide internal directories.