Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomicInteger ¶
type AtomicInteger int32
AtomicInteger is a int32 wrapper fo atomic
func (*AtomicInteger) DecrementAndGet ¶
func (i *AtomicInteger) DecrementAndGet() int32
DecrementAndGet decrement wrapped int32 with 1 and return new value.
func (*AtomicInteger) GetAndDecrement ¶
func (i *AtomicInteger) GetAndDecrement() int32
GetAndDecrement decrement wrapped int32 with 1 and return old value.
func (*AtomicInteger) GetAndIncrement ¶
func (i *AtomicInteger) GetAndIncrement() int32
GetAndIncrement increment wrapped int32 with 1 and return old value.
func (*AtomicInteger) IncrementAndGet ¶
func (i *AtomicInteger) IncrementAndGet() int32
IncrementAndGet increment wrapped int32 with 1 and return new value.
type TimeoutCond ¶
TimeoutCond is a sync.Cond improve for support wait timeout.
func NewTimeoutCond ¶
func NewTimeoutCond(l sync.Locker) *TimeoutCond
NewTimeoutCond return a new TimeoutCond
func (*TimeoutCond) HasWaiters ¶
func (cond *TimeoutCond) HasWaiters() bool
HasWaiters queries whether any goroutine are waiting on this condition
func (*TimeoutCond) Interrupt ¶
func (cond *TimeoutCond) Interrupt()
Interrupt goroutine wait on this TimeoutCond
func (*TimeoutCond) Signal ¶
func (cond *TimeoutCond) Signal()
Signal wakes one goroutine waiting on c, if there is any.
Click to show internal directories.
Click to hide internal directories.