Marine Library  1.0
C++ library for Linux Networking Development
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
CXsiSemaphoreSet Class Reference

Public Member Functions

 CXsiSemaphoreSet (key_t key, int nsems=0, int semflg=kFlagDefault)
 
 CXsiSemaphoreSet (const char *pathname, int project, int nsems=0, int semflg=kFlagDefault)
 
bool init (key_t key, int nsems, int semflg)
 
bool init (const char *pathname, int project, int nsems, int semflg)
 
bool valid () const
 
size_t size () const
 
bool getAll (std::vector< unsigned short > &results) const
 
bool setAll (const std::vector< unsigned short > &values)
 
bool setVal (int index, int val)
 
int getVal (int index) const
 
bool apply (int index, int op, bool wait, bool undo)
 
bool apply (const std::vector< sembuf > &ops)
 
void destroy ()
 

Static Public Member Functions

static sembuf GenOp (int index, int op, bool wait, bool undo)
 

Static Public Attributes

static const int kFlagDefault = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH
 

The documentation for this class was generated from the following file: