Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RWMutex ¶
type RWMutex struct {
// contains filtered or unexported fields
}
RWMutex provides locking functions, and an ability to detect and remove deadlocks.
func New ¶
New takes a maxLockTime and returns a lock. The lock will never stay locked for more than maxLockTime, instead printing an error and unlocking after maxLockTime has passed.
func (*RWMutex) Lock ¶
Lock will lock the RWMutex. The return value must be used as input when calling RUnlock.
func (*RWMutex) RLock ¶
RLock will read lock the RWMutex. The return value must be used as input when calling RUnlock.
Click to show internal directories.
Click to hide internal directories.