gPTP Documentation
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
WindowsCondition Class Reference

#include <windows_hal.hpp>

Inheritance diagram for WindowsCondition:
Inheritance graph
Collaboration diagram for WindowsCondition:
Collaboration graph

Public Member Functions

bool wait_prelock ()
 Acquire a new lock and increment the condition counter. More...
 
bool wait ()
 Waits for a condition and decrements the condition counter when the condition is met. More...
 
bool signal ()
 Sends a signal to unblock other threads. More...
 
- Public Member Functions inherited from OSCondition
virtual ~OSCondition ()=0
 

Protected Member Functions

bool initialize ()
 
- Protected Member Functions inherited from OSCondition
 OSCondition ()
 
void up ()
 Counts up waiting condition. More...
 
void down ()
 Conds down waiting condition. More...
 
bool waiting ()
 Checks if OS is waiting. More...
 

Friends

class WindowsConditionFactory
 

Detailed Description

Provides a OSCondition interface for windows

Member Function Documentation

bool WindowsCondition::initialize ( )
inlineprotected

Initializes the locks and condition variables

bool WindowsCondition::signal ( )
inlinevirtual

Sends a signal to unblock other threads.

Returns
true

Implements OSCondition.

bool WindowsCondition::wait ( )
inlinevirtual

Waits for a condition and decrements the condition counter when the condition is met.

Returns
TRUE if the condition is met and the lock is released. FALSE otherwise.

Implements OSCondition.

bool WindowsCondition::wait_prelock ( )
inlinevirtual

Acquire a new lock and increment the condition counter.

Returns
true

Implements OSCondition.


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