Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MutexBuffer ¶
MutexBuffer create reference and hold to make a buffered mutex
func New ¶
func New(bufferSize int) (newMutexBuffer *MutexBuffer)
New creates a new mutexBuffer and returns it
func (*MutexBuffer) SetBuffer ¶
func (m *MutexBuffer) SetBuffer(bufferSize int)
SetBuffer takes in an int that determines the amount of locks
func (*MutexBuffer) Unlock ¶
func (m *MutexBuffer) Unlock() (err error)
Unlock unlocks a lock from the mutexes