2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Ux::PosixSem Class Reference
[C++ Wrapper for Standard UNIX Functions]

Inheritance diagram for Ux::PosixSem:

Ux::Base List of all members.

Detailed Description

Definition at line 78 of file uxposixipc.hpp.

Public Member Functions

 PosixSem (sem_t *s=NULL)
void close (void)
void destroy (void)
void getvalue (int *valuep)
void init (int pshared=1, unsigned value=0)
void open (const char *name, int flags, mode_t perms=PERM_FILE, unsigned value=0)
void post (void)
void timedwait (const struct timespec *time)
void trywait (void)
void unlink (const char *name)
void wait (void)

Protected Attributes

sem_tsem


Constructor & Destructor Documentation

Ux::PosixSem::PosixSem sem_t s = NULL  )  [inline]
 

Definition at line 83 of file uxposixipc.hpp.


Member Function Documentation

void PosixSem::close void   ) 
 

Calls sem_close.

Definition at line 222 of file uxposixipc.cpp.

References errno, and sem.

void PosixSem::destroy void   ) 
 

Calls sem_destroy.

Definition at line 235 of file uxposixipc.cpp.

References errno, and sem.

void PosixSem::getvalue int *  valuep  ) 
 

Calls sem_getvalue.

Definition at line 248 of file uxposixipc.cpp.

References errno, and sem.

void PosixSem::init int  pshared = 1,
unsigned  value = 0
 

Calls sem_init.

Definition at line 261 of file uxposixipc.cpp.

References errno, and sem.

void PosixSem::open const char *  name,
int  flags,
mode_t  perms = PERM_FILE,
unsigned  value = 0
 

Calls sem_open.

Definition at line 209 of file uxposixipc.cpp.

References errno, and sem.

void PosixSem::post void   ) 
 

Calls sem_post.

Definition at line 274 of file uxposixipc.cpp.

References errno, and sem.

void PosixSem::timedwait const struct timespec *  time  ) 
 

Calls sem_timedwait.

Definition at line 287 of file uxposixipc.cpp.

References errno, sem, and time().

void PosixSem::trywait void   ) 
 

Calls sem_trywait.

Definition at line 300 of file uxposixipc.cpp.

References errno, and sem.

void PosixSem::unlink const char *  name  ) 
 

Calls sem_unlink. Could be static, as it doesn't use sem.

Definition at line 313 of file uxposixipc.cpp.

References errno.

void PosixSem::wait void   ) 
 

Calls sem_wait.

Definition at line 326 of file uxposixipc.cpp.

References errno, and sem.


Member Data Documentation

sem_t* Ux::PosixSem::sem [protected]
 

Definition at line 80 of file uxposixipc.hpp.

Referenced by close(), destroy(), getvalue(), init(), open(), post(), timedwait(), trywait(), and wait().


The documentation for this class was generated from the following files:
Generated on Fri Apr 23 10:57:17 2004 for AUP2 Example Source by doxygen 1.3.1