![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
#include <WaitableFlag.hpp>
Public Member Functions | |
| bool | Set () |
| CAT_INLINE bool | Valid () |
| bool | Wait (int milliseconds=-1) |
| WaitableFlag () | |
| virtual CAT_INLINE | ~WaitableFlag () |
Private Member Functions | |
| void | Cleanup () |
Private Attributes | |
| pthread_cond_t | _cond |
| volatile u32 | _flag |
| pthread_mutex_t | _mutex |
| bool | _valid |
| bool | _valid_cond |
| bool | _valid_mutex |
Definition at line 56 of file WaitableFlag.hpp.
| cat::WaitableFlag::WaitableFlag | ( | ) |
| virtual CAT_INLINE cat::WaitableFlag::~WaitableFlag | ( | ) | [inline, virtual] |
| void cat::WaitableFlag::Cleanup | ( | ) | [private] |
Referenced by ~WaitableFlag().
| bool cat::WaitableFlag::Set | ( | ) |
| CAT_INLINE bool cat::WaitableFlag::Valid | ( | ) | [inline] |
Definition at line 76 of file WaitableFlag.hpp.
References _valid.
{
#if defined(CAT_OS_WINDOWS)
return _event != 0;
#else
return _valid;
#endif
}
| bool cat::WaitableFlag::Wait | ( | int | milliseconds = -1 | ) |
pthread_cond_t cat::WaitableFlag::_cond [private] |
Definition at line 63 of file WaitableFlag.hpp.
volatile u32 cat::WaitableFlag::_flag [private] |
Definition at line 62 of file WaitableFlag.hpp.
pthread_mutex_t cat::WaitableFlag::_mutex [private] |
Definition at line 64 of file WaitableFlag.hpp.
bool cat::WaitableFlag::_valid [private] |
Definition at line 61 of file WaitableFlag.hpp.
Referenced by Valid().
bool cat::WaitableFlag::_valid_cond [private] |
Definition at line 61 of file WaitableFlag.hpp.
bool cat::WaitableFlag::_valid_mutex [private] |
Definition at line 61 of file WaitableFlag.hpp.
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.