DefaultCommandTimeout is the total amount of time, including lock acquisition and command runtime, allotted to running a command through mmutex.
const DrainFileName = "mmutex.drain"
DrainFileName specifies the name of the drain file within $MMUTEX_LOCK_DIR.
const LockFileEnvVariable = "MMUTEX_LOCK_DIR"
LockFileEnvVariable specifies the directory of the lock file.
const LockFileName = "mmutex.lock"
LockFileName specifies the name of the lock file within $MMUTEX_LOCK_DIR.
RunExclusive runs the command with the specified context and environment while holding an exclusive mmutex lock.
RunShared runs the command with the specified context and environment while holding a shared mmutex lock.