Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ost_lockfile(3) [debian man page]

ost::Lockfile(3)					     Library Functions Manual						  ost::Lockfile(3)

NAME
ost::Lockfile - This class is used to create a 'named' lock entity that can be used to control access to a resource between multiple processes. SYNOPSIS
#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. Detailed Description This class is used to create a 'named' lock entity that can be used to control access to a resource between multiple processes. The posix implimentation uses a pidfile and the win32 version uses a globally visible mutex. Author: David Sugar dyfet@ostel.com System-wide named lock Constructor &; Destructor Documentation ost::Lockfile::Lockfile (const char *name) Create a lock under a known name. Parameters: name of system-wide lock to create. ost::Lockfile::Lockfile () Create a new lock object that can be used to make locks. ost::Lockfile::~Lockfile () [inline] Destroy the current lock and release it. Member Function Documentation bool ost::Lockfile::isLocked (void) Flag if the current process has aqcuired a lock. Returns: true if we have the lock. bool ost::Lockfile::lock (const char *name) 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. Returns: true if lock successful. Parameters: name system-wide lock to use. void ost::Lockfile::unlock (void) Release an acquired lock. Author Generated automatically by Doxygen for GNU CommonC++ from the source code. GNU CommonC++ Sat Jun 23 2012 ost::Lockfile(3)

Check Out this Related Man Page

ost::Dir(3)						     Library Functions Manual						       ost::Dir(3)

NAME
ost::Dir - A low level portable directory class. SYNOPSIS
#include <file.h> Inherits ost::File. Public Member Functions Dir (const char *name=NULL) void open (const char *name) void close (void) virtual ~Dir () const char * getName (void) const char * operator++ () const char * operator++ (int) const char * operator* () bool rewind (void) bool operator! () bool isValid (void) Static Public Member Functions static bool create (const char *path, Attr attr=attrGroup) static bool remove (const char *path) static bool setPrefix (const char *path) static bool getPrefix (char *path, size_t size=256) Additional Inherited Members Detailed Description A low level portable directory class. Used to support ccstd Directory container. This provides a basic mechanism for allocating and accessing file entries. Author: David Sugar dyfet@ostel.com low level directory access class. Constructor &; Destructor Documentation ost::Dir::Dir (const char *name = NULL) virtual ost::Dir::~Dir () [virtual] Member Function Documentation void ost::Dir::close (void) static bool ost::Dir::create (const char *path, Attrattr = attrGroup) [static] const char* ost::Dir::getName (void) static bool ost::Dir::getPrefix (char *path, size_tsize = 256) [static] bool ost::Dir::isValid (void) void ost::Dir::open (const char *name) bool ost::Dir::operator! () [inline] const char* ost::Dir::operator* () const char* ost::Dir::operator++ () [inline] const char* ost::Dir::operator++ (int) [inline] static bool ost::Dir::remove (const char *path) [static] bool ost::Dir::rewind (void) static bool ost::Dir::setPrefix (const char *path) [static] Author Generated automatically by Doxygen for GNU CommonC++ from the source code. GNU CommonC++ Sat Jun 23 2012 ost::Dir(3)
Man Page