Versions in this module Expand all Collapse all v0 v0.1.0 Jun 4, 2018 Changes in this version + type AtomicBool int32 + func (b *AtomicBool) Get() bool + func (b *AtomicBool) Set(v bool) + type AtomicDuration int64 + func (d *AtomicDuration) Add(duration time.Duration) time.Duration + func (d *AtomicDuration) CompareAndSwap(oldval, newval time.Duration) (swapped bool) + func (d *AtomicDuration) Get() time.Duration + func (d *AtomicDuration) Set(duration time.Duration) + type AtomicInt32 int32 + func (i *AtomicInt32) Add(n int32) int32 + func (i *AtomicInt32) CompareAndSwap(oldval, newval int32) (swapped bool) + func (i *AtomicInt32) Get() int32 + func (i *AtomicInt32) Set(n int32) + type AtomicInt64 int64 + func (i *AtomicInt64) Add(n int64) int64 + func (i *AtomicInt64) CompareAndSwap(oldval, newval int64) (swapped bool) + func (i *AtomicInt64) Get() int64 + func (i *AtomicInt64) Set(n int64) + type AtomicString struct + func (s *AtomicString) CompareAndSwap(oldval, newval string) (swapped bool) + func (s *AtomicString) Get() string + func (s *AtomicString) Set(str string) + type AtomicUint32 uint32 + func (i *AtomicUint32) Add(n uint32) uint32 + func (i *AtomicUint32) CompareAndSwap(oldval, newval uint32) (swapped bool) + func (i *AtomicUint32) Get() uint32 + func (i *AtomicUint32) Set(n uint32) + type AtomicUint64 uint64 + func (i *AtomicUint64) Add(n uint64) uint64 + func (i *AtomicUint64) CompareAndSwap(oldval, newval uint64) (swapped bool) + func (i *AtomicUint64) Get() uint64 + func (i *AtomicUint64) Set(n uint64) + type Semaphore struct + func NewSemaphore(initialCount int) *Semaphore + func (s *Semaphore) Acquire() + func (s *Semaphore) AcquireTimeout(timeout time.Duration) bool + func (s *Semaphore) Release()