sella::util::LockFile Class Reference

List of all members.

Public Member Functions

 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 Public Attributes

static const useconds_t RetryInterval = 100000

Protected Member Functions

bool lock_nonblock (void) throw (FileException)
bool unlink (void) throw ()
void close (void) throw ()

Detailed Description

Definition at line 36 of file LockFile.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables

Generated on 20 Nov 2014 for libutil++ by  doxygen 1.6.1