#include <process.h>
Public Member Functions | |
Lockfile (const char *name) | |
Create a lock under a known name. | |
Lockfile () | |
Create a new lock object that can be used to make locks. | |
~Lockfile () | |
Destroy the current lock and release it. | |
bool | lock (const char *name) |
Lock a system-wide name for this process. | |
void | unlock (void) |
Release an acquired lock. | |
bool | isLocked (void) |
Flag if the current process has aqcuired a lock. |
The posix implimentation uses a pidfile and the win32 version uses a globally visible mutex.
|
Create a lock under a known name.
|
|
Create a new lock object that can be used to make locks.
|
|
Destroy the current lock and release it.
|
|
Flag if the current process has aqcuired a lock.
|
|
Lock a system-wide name for this process. If the lock is successful, return true. If an existing lock was already acquired, release it first.
|
|
Release an acquired lock.
|