Nebula
|
#include <posixcriticalsection.h>
Posix-implementation of critical section.
Critical section objects are used to protect a portion of code from parallel execution. Define a static critical section object and use its Enter() and Leave() methods to protect critical sections of your code.
(C) 2006 Radon Labs GmbH (C) 2013-2018 Individual contributors, see AUTHORS file
Public Member Functions | |
PosixCriticalSection () | |
constructor | |
~PosixCriticalSection () | |
destructor | |
void | operator= (PosixCriticalSection &&rhs) |
copy assignment | |
void | Enter () const |
enter the critical section | |
void | Leave () const |
leave the critical section | |
Private Attributes | |
pthread_mutex_t * | mutex |
|
inline |
constructor
|
inline |
destructor
|
inline |
enter the critical section
|
inline |
leave the critical section
|
inline |
copy assignment
|
private |