cmlabs::JSemaphore Class Reference

#include <JSemaphore.h>

Inheritance diagram for cmlabs::JSemaphore:

Inheritance graph
[legend]
Collaboration diagram for cmlabs::JSemaphore:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 JSemaphore (JString semName="")
 ~JSemaphore ()
Objectclone () const
bool wait (long ms=-1)
bool post ()
bool tryWait ()
bool unitTest ()

Public Attributes

int count
JString name

Private Attributes

HANDLE hSemaphore
pthread_mutex_t * mutex


Detailed Description

Definition at line 62 of file JSemaphore.h.


Constructor & Destructor Documentation

cmlabs::JSemaphore::JSemaphore ( JString  semName = ""  ) 

Definition at line 32 of file JSemaphore_Linux.cpp.

cmlabs::JSemaphore::~JSemaphore (  ) 

Definition at line 45 of file JSemaphore_Linux.cpp.


Member Function Documentation

Object* cmlabs::JSemaphore::clone (  )  const [virtual]

Implements cmlabs::Object.

Definition at line 67 of file JSemaphore.h.

bool cmlabs::JSemaphore::wait ( long  ms = -1  ) 

Reimplemented from cmlabs::Object.

Definition at line 54 of file JSemaphore_Linux.cpp.

bool cmlabs::JSemaphore::post (  ) 

Definition at line 111 of file JSemaphore_Linux.cpp.

bool cmlabs::JSemaphore::tryWait (  ) 

Definition at line 121 of file JSemaphore_Linux.cpp.

bool cmlabs::JSemaphore::unitTest (  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 42 of file JSemaphore.cpp.


Member Data Documentation

Definition at line 69 of file JSemaphore.h.

Definition at line 70 of file JSemaphore.h.

Definition at line 79 of file JSemaphore.h.

pthread_mutex_t* cmlabs::JSemaphore::mutex [private]

Definition at line 81 of file JSemaphore.h.


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

Generated on Tue Jul 7 16:22:48 2009 for CoreLibrary by  doxygen 1.5.6