Semaphore Class Reference

#include <parallel.h>

List of all members.

Public Member Functions

 Semaphore ()
 ~Semaphore ()
void Post (int count=1)
void Wait ()
bool TryWait ()

Private Attributes

sem_t * sem

Static Private Attributes

static int count = 0

Detailed Description

Definition at line 279 of file parallel.h.


Constructor & Destructor Documentation

Semaphore::Semaphore (  ) 

Definition at line 465 of file parallel.cpp.

References count, sem, and Severe().

Semaphore::~Semaphore (  ) 

Definition at line 497 of file parallel.cpp.

References sem, and Severe().


Member Function Documentation

void Semaphore::Post ( int  count = 1  ) 

Definition at line 537 of file parallel.cpp.

References sem, and Severe().

Referenced by EnqueueTasks(), and TasksCleanup().

bool Semaphore::TryWait (  ) 

Definition at line 530 of file parallel.cpp.

References sem.

void Semaphore::Wait (  ) 

Definition at line 521 of file parallel.cpp.

References sem, and Severe().

Referenced by taskEntry().


Member Data Documentation

int Semaphore::count = 0 [static, private]

Definition at line 293 of file parallel.h.

Referenced by Semaphore().

sem_t* Semaphore::sem [private]

Definition at line 292 of file parallel.h.

Referenced by Post(), Semaphore(), TryWait(), Wait(), and ~Semaphore().


The documentation for this class was generated from the following files:
Generated on Sat Aug 28 20:00:15 2010 for pbrt by  doxygen 1.6.3