commore  1.0.6-SNAPSHOT
All Classes Namespaces Functions Variables Typedefs Enumerations Pages
commore::CriticalSection Class Reference

#include <CriticalSection.h>

Public Member Functions

void enter ()
 
void leave ()
 
bool try_enter ()
 

Detailed Description

System independent Critical section management

Examples:
/examples/coding/Logs.cpp.

Member Function Documentation

void commore::CriticalSection::enter ( )

Enter in criical section, wait until free

void commore::CriticalSection::leave ( )

Leave critical section. Allow other thread to enter.

bool commore::CriticalSection::try_enter ( )
Returns
true if critical section is free (does ot wait)

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