|
|
| LockFile (const std::string &fullpath, useconds_t staleAge=-1, bool removeStale=true, uid_t uid=-1, gid_t gid=-1, int mode=0644) throw () |
| |
|
void | setRemoveStale (bool on=true) |
| |
|
void | setStaleAge (useconds_t staleAge=-1) throw () |
| |
|
void | setUID (uid_t uid=-1) throw () |
| |
|
void | setGID (gid_t gid=-1) throw () |
| |
|
void | setMode (int mode=0644) throw () |
| |
|
bool | lock (useconds_t retryInterval=RetryInterval) throw (FileException) |
| |
|
bool | tryLock (void) throw (FileException) |
| |
|
bool | tryLockUntil (time_t timeout, useconds_t retryInterval=RetryInterval) throw (FileException) |
| |
|
bool | tryLockFor (time_t duration, useconds_t retryInterval=RetryInterval) throw (FileException) |
| |
|
bool | tryLockCount (int64_t retries, useconds_t retryInterval=RetryInterval) throw (FileException) |
| |
|
bool | unlock (void) throw (FileException) |
| |
|
bool | remove (void) throw () |
| |
|
bool | ownLock (void) throw () |
| |
|
bool | isLocked (void) throw () |
| |
|
bool | isStale (void) throw () |
| |
|
|
static const useconds_t | RetryInterval = 100000 |
| |
|
|
bool | lock_nonblock (void) throw (FileException) |
| |
|
bool | unlink (void) throw () |
| |
|
void | close (void) throw () |
| |
Definition at line 36 of file LockFile.h.
The documentation for this class was generated from the following files:
- /home/sella/digitalgenesis/libutil++/releases/rpm/BUILD/libutil++-1.9.3/src/sella/util/LockFile.h
- /home/sella/digitalgenesis/libutil++/releases/rpm/BUILD/libutil++-1.9.3/src/sella/util/LockFile.cpp