The Nebula Device 3: Threading::SafeFlag Class Reference

The Nebula Device 3

Threading::SafeFlag Class Reference

#include <safeflag.h>


Detailed Description

A thread-safe flag variable.

(C) 2008 Radon Labs GmbH

Public Member Functions

 SafeFlag ()
 constructor
void Set ()
 set the flag
void Clear ()
 clear the flag
bool Test () const
 test if the flag is set
bool TestAndClearIfSet ()
 test if flag is set, if yes, clear flag