Documentation ¶
Overview ¶
atomic - 각 데이터 형식에 대한 Atomic 제공 패키지
Index ¶
- type Bool
- type Int32
- func (obj *Int32) Add(delta int32) (new int32)
- func (obj *Int32) CompareAndSwap(old int32, new int32) (swapped bool)
- func (obj *Int32) Decrement() (new int32)
- func (obj *Int32) Increment() (new int32)
- func (obj *Int32) Load() int32
- func (obj *Int32) Store(val int32)
- func (obj *Int32) Sub(delta int32) (new int32)
- func (obj *Int32) Swap(new int32) (old int32)
- type Int64
- func (obj *Int64) Add(delta int64) (new int64)
- func (obj *Int64) CompareAndSwap(old int64, new int64) (swapped bool)
- func (obj *Int64) Decrement() (new int64)
- func (obj *Int64) Increment() (new int64)
- func (obj *Int64) Load() int64
- func (obj *Int64) Store(val int64)
- func (obj *Int64) Sub(delta int64) (new int64)
- func (obj *Int64) Swap(new int64) (old int64)
- type Uint32
- func (obj *Uint32) Add(delta uint32) (new uint32)
- func (obj *Uint32) CompareAndSwap(old uint32, new uint32) (swapped bool)
- func (obj *Uint32) Decrement() (new uint32)
- func (obj *Uint32) Increment() (new uint32)
- func (obj *Uint32) Load() uint32
- func (obj *Uint32) Store(val uint32)
- func (obj *Uint32) Sub(delta uint32) (new uint32)
- func (obj *Uint32) Swap(new uint32) (old uint32)
- type Uint64
- func (obj *Uint64) Add(delta uint64) (new uint64)
- func (obj *Uint64) CompareAndSwap(old uint64, new uint64) (swapped bool)
- func (obj *Uint64) Decrement() (new uint64)
- func (obj *Uint64) Increment() (new uint64)
- func (obj *Uint64) Load() uint64
- func (obj *Uint64) Store(val uint64)
- func (obj *Uint64) Sub(delta uint64) (new uint64)
- func (obj *Uint64) Swap(new uint64) (old uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Int32 ¶
type Int32 struct {
// contains filtered or unexported fields
}
func (*Int32) CompareAndSwap ¶
type Int64 ¶
type Int64 struct {
// contains filtered or unexported fields
}
===== [ Types ] =====
func (*Int64) CompareAndSwap ¶
type Uint32 ¶
type Uint32 struct {
// contains filtered or unexported fields
}
func (*Uint32) CompareAndSwap ¶
type Uint64 ¶
type Uint64 struct {
// contains filtered or unexported fields
}
===== [ Types ] =====
func (*Uint64) CompareAndSwap ¶
Click to show internal directories.
Click to hide internal directories.