Documentation ¶
Index ¶
Constants ¶
View Source
const DIRECTORY_LOCK = ".lock"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mutex ¶
type Mutex struct {
// contains filtered or unexported fields
}
Mutex is a lock object based on a file. It features a process lock and an in-process mutex. Therefore, it can be used in a GO program in multiple Go-routines to achieve a global synchronization among multiple processes on the same machine. The result of a Lock operation is an io.Closer which is used to release the lock again.
Click to show internal directories.
Click to hide internal directories.