Documentation ¶
Index ¶
- type AtomicBitSet
- func (self *AtomicBitSet) CompareAndSet(index int, current, next bool) bool
- func (self *AtomicBitSet) CompareAndSetAll(current, next uint32) bool
- func (self *AtomicBitSet) IsSet(index int) bool
- func (self *AtomicBitSet) Load() uint32
- func (self *AtomicBitSet) Set(index int, val bool)
- func (self *AtomicBitSet) Store(val uint32)
- type AtomicBoolean
- type AtomicString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomicBitSet ¶ added in v0.15.21
type AtomicBitSet uint32
func (*AtomicBitSet) CompareAndSet ¶ added in v0.15.21
func (self *AtomicBitSet) CompareAndSet(index int, current, next bool) bool
func (*AtomicBitSet) CompareAndSetAll ¶ added in v0.15.21
func (self *AtomicBitSet) CompareAndSetAll(current, next uint32) bool
func (*AtomicBitSet) IsSet ¶ added in v0.15.21
func (self *AtomicBitSet) IsSet(index int) bool
func (*AtomicBitSet) Load ¶ added in v0.15.21
func (self *AtomicBitSet) Load() uint32
func (*AtomicBitSet) Set ¶ added in v0.15.21
func (self *AtomicBitSet) Set(index int, val bool)
func (*AtomicBitSet) Store ¶ added in v0.15.21
func (self *AtomicBitSet) Store(val uint32)
type AtomicBoolean ¶
type AtomicBoolean int32
func (*AtomicBoolean) CompareAndSwap ¶
func (ab *AtomicBoolean) CompareAndSwap(expected, val bool) bool
CompareAndSwap sets the given value only if the current value is equal to expected. return true if the swap was made
func (*AtomicBoolean) Get ¶
func (ab *AtomicBoolean) Get() bool
func (*AtomicBoolean) GetUnsafe ¶
func (ab *AtomicBoolean) GetUnsafe() bool
GetUnsafe returns the value if you are sure you are getting from the same thread as the last set This is only useful if you only set from one goroutine and are only using Get to sync access across other threads. GetUnsafe can then be used from the Set goroutine
func (*AtomicBoolean) Set ¶
func (ab *AtomicBoolean) Set(val bool)
func (*AtomicBoolean) WaitForState ¶
type AtomicString ¶
func (*AtomicString) Get ¶
func (ab *AtomicString) Get() string
func (*AtomicString) Set ¶
func (ab *AtomicString) Set(val string)
Click to show internal directories.
Click to hide internal directories.