Semaphore Class Reference

Semaphore class. More...

#include <Thread.hpp>

List of all members.

Public Member Functions

void wait ()
void post ()
int trywait ()
 Semaphore ()
 ~Semaphore ()


Detailed Description

Semaphore class.

Definition at line 441 of file Thread.hpp.


Constructor & Destructor Documentation

Semaphore::Semaphore (  )  [inline]

Constructor

Definition at line 477 of file Thread.hpp.

00478   { 
00479     ;
00480   }

Semaphore::~Semaphore (  )  [inline]

Destructor

Definition at line 486 of file Thread.hpp.

00487   {
00488     ;
00489   }


Member Function Documentation

void Semaphore::wait (  )  [inline]

Waits for resource

Definition at line 448 of file Thread.hpp.

00449   {
00450     ;
00451   }

void Semaphore::post (  )  [inline]

Increments semaphore counter (decrease priority)

Definition at line 457 of file Thread.hpp.

00458   {
00459     ;
00460   }

int Semaphore::trywait (  )  [inline]

Tries to get resource

Returns:
0 if not reserved

Definition at line 468 of file Thread.hpp.

00469   {
00470     return 0;
00471   }


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

Generated on Wed Nov 19 00:14:04 2008 for FreeFEM3D (aka ff3d) by  doxygen 1.5.6