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  

c7/SimpleSemPOSIX.c File Reference


Detailed Description

Simple Semaphore Interface - POSIX implementation [Sec. 7.10.1].

Definition in file SimpleSemPOSIX.c.

Go to the source code of this file.

Functions

SimpleSem * SimpleSemOpen (const char *name)
bool SimpleSemPost (struct SimpleSem *sem)
bool SimpleSemWait (struct SimpleSem *sem)
bool SimpleSemClose (struct SimpleSem *sem)
bool SimpleSemRemove (const char *name)


Function Documentation

bool SimpleSemClose struct SimpleSem sem  ) 
 

Definition at line 70 of file SimpleSemPOSIX.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, sem_close(), and SimpleSem::sm.

struct SimpleSem* SimpleSemOpen const char *  name  ) 
 

Definition at line 34 of file SimpleSemPOSIX.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, ec_null, PERM_FILE, sem_open(), SimpleSemOpen(), and SimpleSem::sm.

bool SimpleSemPost struct SimpleSem sem  ) 
 

Definition at line 50 of file SimpleSemPOSIX.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, sem_post(), and SimpleSem::sm.

bool SimpleSemRemove const char *  name  ) 
 

Definition at line 81 of file SimpleSemPOSIX.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, errno, and unlink().

bool SimpleSemWait struct SimpleSem sem  ) 
 

Definition at line 60 of file SimpleSemPOSIX.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, sem_wait(), and SimpleSem::sm.


Generated on Fri Apr 23 10:57:09 2004 for AUP2 Example Source by doxygen 1.3.1