Semaphore.h File Reference


Detailed Description

From the Poco C++ Libraries; used for ES40 for OpenVMS only, as Poco has dropped OpenVMS support.

Id
Semaphore.h,v 1.1 2008/03/31 19:13:33 iamcamiel Exp

X-1.1 Camiel Vanderhoeven 31-MAR-2008 Adapted for use by the ES40 Emulator.

Definition in file Semaphore.h.

#include "VMS/Foundation.h"
#include "VMS/Exception.h"
#include "VMS/Semaphore_POSIX.h"

Go to the source code of this file.

Namespaces

namespace  Poco

Data Structures

class  Poco::Semaphore
 A Semaphore is a synchronization object with the following characteristics: A semaphore has a value that is constrained to be a non-negative integer and two atomic operations. The allowable operations are V (here called set()) and P (here called wait()). A V (set()) operation increases the value of the semaphore by one. A P (wait()) operation decreases the value of the semaphore by one, provided that can be done without violating the constraint that the value be non-negative. A P (wait()) operation that is initiated when the value of the semaphore is 0 suspends the calling thread. The calling thread may continue when the value becomes positive again. More...


SourceForge.net Logo
Project space on SourceForge.net