Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Wefts::OSConditionWindows Class Reference

This class implement an os-dependant condition. More...

#include <wefts_os_windows.h>

Inheritance diagram for Wefts::OSConditionWindows:

Inheritance graph
[legend]
Collaboration diagram for Wefts::OSConditionWindows:

Collaboration graph
[legend]
List of all members.

Public Methods

 OSConditionWindows () throw ( InitError )
 ~OSConditionWindows ()
void signal ()
 Signal a pthread condition.

bool wait (OSMutexBase &mtx, CleanupItem guard)
 Waiting for a condition (giving off an already held mutex).

bool timedWait (OSMutexBase &mtx, long seconds, long nanoseconds, CleanupItem guard)
 Timed wait.


Private Attributes

HANDLE semBlockLock
HANDLE semBlockQueue
CRITICAL_SECTION mtxUnblockLock
int nWaitersGone
int nWaitersBlocked
int nWaitersToUnblock

Detailed Description

This class implement an os-dependant condition.

Calls Windows dependant thread


Constructor & Destructor Documentation

Wefts::OSConditionWindows::OSConditionWindows   throw ( InitError )
 

Wefts::OSConditionWindows::~OSConditionWindows  
 


Member Function Documentation

void Wefts::OSConditionWindows::signal   [virtual]
 

Signal a pthread condition.

Implements Wefts::OSConditionBase.

bool Wefts::OSConditionWindows::timedWait OSMutexBase   mtx,
long    seconds,
long    nanoseconds,
CleanupItem    guard
[virtual]
 

Timed wait.

Implements Wefts::OSConditionBase.

bool Wefts::OSConditionWindows::wait OSMutexBase   mtx,
CleanupItem    guard
[virtual]
 

Waiting for a condition (giving off an already held mutex).

Implements Wefts::OSConditionBase.


Member Data Documentation

CRITICAL_SECTION Wefts::OSConditionWindows::mtxUnblockLock [private]
 

int Wefts::OSConditionWindows::nWaitersBlocked [private]
 

int Wefts::OSConditionWindows::nWaitersGone [private]
 

int Wefts::OSConditionWindows::nWaitersToUnblock [private]
 

HANDLE Wefts::OSConditionWindows::semBlockLock [private]
 

HANDLE Wefts::OSConditionWindows::semBlockQueue [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Dec 22 04:12:37 2003 for Wefts by doxygen1.2.18