rllib  1
Public Member Functions | Public Attributes
rlSemaphore Class Reference

#include <rlthread.h>

Collaboration diagram for rlSemaphore:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 rlSemaphore (int max_semaphore=1000)
virtual ~rlSemaphore ()
int waitSemaphore ()
int incrementSemaphore ()

Public Attributes

WSEMAPHORE semaphore

Detailed Description

Semaphore functions based on POSIX threads.

Definition at line 147 of file rlthread.h.


Constructor & Destructor Documentation

rlSemaphore::rlSemaphore ( int  max_semaphore = 1000)

Definition at line 111 of file rlthread.cpp.

{
  rlwrapinit_semaphore(&semaphore, max_semaphore);
}
rlSemaphore::~rlSemaphore ( ) [virtual]

Definition at line 116 of file rlthread.cpp.


Member Function Documentation

int rlSemaphore::incrementSemaphore ( )
  Increment the value of the semaphore
  

Definition at line 126 of file rlthread.cpp.

int rlSemaphore::waitSemaphore ( )
  Wait until semaphore is signaled
  

Definition at line 121 of file rlthread.cpp.


Member Data Documentation

Definition at line 163 of file rlthread.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines