FCondition Class Reference
[Thread Handling]

FCondition - wraps the signal and wait calls in win32. More...

#include <fthread.h>

Public Member Functions

 FCondition (const char8 *name=0)
 Condition constructor.
 ~FCondition ()
 Condition destructor.
void signal ()
 Signals one thread.
void signalAll ()
 Signals all threads.
void wait ()
 Waits for condition.
bool waitTimeout (int32 timeout=-1)
 Waits for condtion with timeout.
void reset ()
 Resets condition.

Detailed Description

FCondition - wraps the signal and wait calls in win32.


Constructor & Destructor Documentation

FCondition ( const char8 *  name = 0  ) 

Condition constructor.

FCondition CTOR.

Parameters:
name name of consition
name - can be used to set the name of the event.
~FCondition (  ) 

Condition destructor.


Member Function Documentation

void signal (  ) 

Signals one thread.

void signalAll (  ) 

Signals all threads.

void wait (  ) 

Waits for condition.

bool waitTimeout ( int32  timeout = -1  ) 

Waits for condtion with timeout.

Parameters:
timeout time out in milliseconds
Returns:
false if timed out
void reset (  ) 

Resets condition.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Empty

Copyright ©2013 Steinberg Media Technologies GmbH. All Rights Reserved.