Documentation
¶
Overview ¶
Package flock provides read-write mutex locks across process for Linux, Mac and Windows. RWMutex methods shall panic if they are misused.
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 is equivalent to sync.RWMutex, but synchronizes across processes.
func (*RWMutex) Lock ¶
func (rw *RWMutex) Lock()
Lock locks rw. If the lock is already in use, the calling goroutine blocks until the mutex is available.
func (*RWMutex) RLock ¶
func (rw *RWMutex) RLock()
RLock locks rw for reading. It should not be used for recursive read locking; a blocked Lock call excludes new readers from acquiring the lock.
Click to show internal directories.
Click to hide internal directories.