Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SingleLockSemaphore ¶
type SingleLockSemaphore struct {
// contains filtered or unexported fields
}
func NewSingleLockSemaphore ¶
func NewSingleLockSemaphore() *SingleLockSemaphore
this does NOT start unlocked
func (*SingleLockSemaphore) Read ¶
func (m *SingleLockSemaphore) Read()
func (*SingleLockSemaphore) Release ¶
func (m *SingleLockSemaphore) Release() bool
type TimeoutMutex ¶
type TimeoutMutex struct {
// contains filtered or unexported fields
}
func NewMutex ¶
func NewMutex() *TimeoutMutex
func (*TimeoutMutex) Lock ¶
func (m *TimeoutMutex) Lock()
func (*TimeoutMutex) TestIsLocked ¶
func (m *TimeoutMutex) TestIsLocked() bool
no promises about the second after it is tested. only approximate.
func (*TimeoutMutex) TryLockNoWait ¶
func (m *TimeoutMutex) TryLockNoWait() bool
func (*TimeoutMutex) Unlock ¶
func (m *TimeoutMutex) Unlock()
Click to show internal directories.
Click to hide internal directories.