Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomicCounter ¶
type AtomicCounter struct {
// contains filtered or unexported fields
}
AtomicCounter implements an atmoic lock using the atomic package
func (*AtomicCounter) Read ¶
func (c *AtomicCounter) Read() int64
Read returns the current counter amount
Click to show internal directories.
Click to hide internal directories.