Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Private Member Functions | Private Attributes
cat::WaitableFlag Class Reference

#include <WaitableFlag.hpp>

List of all members.

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

Detailed Description

Definition at line 56 of file WaitableFlag.hpp.


Constructor & Destructor Documentation

cat::WaitableFlag::WaitableFlag ( )
virtual CAT_INLINE cat::WaitableFlag::~WaitableFlag ( ) [inline, virtual]

Definition at line 71 of file WaitableFlag.hpp.

References Cleanup().

    {
        Cleanup();
    }

Member Function Documentation

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)

Member Data Documentation

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.

Definition at line 61 of file WaitableFlag.hpp.

Referenced by Valid().

Definition at line 61 of file WaitableFlag.hpp.

Definition at line 61 of file WaitableFlag.hpp.


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

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net