|
rambrain
|
this class marks a section as globally critical. Only one thread can process any section where such an object is generated. More...
#include <managedPtr.h>
Public Member Functions | |
| rambrainGlobalCriticalSectionControl (bool locksByUser=false) | |
| ~rambrainGlobalCriticalSectionControl () | |
| void | stop () |
| stop pulling critical ingredients in a multithreaded situation More... | |
| void | start () |
| start pulling of critical ingredients in a multithreaded situation More... | |
Private Attributes | |
| bool | locksByUser |
Static Private Attributes | |
| static pthread_mutex_t | mutex = PTHREAD_MUTEX_INITIALIZER |
this class marks a section as globally critical. Only one thread can process any section where such an object is generated.
if called with locksByUser set to true, the user has to unlock the mutex manually calling unlock.
Definition at line 490 of file managedPtr.h.
|
inline |
Definition at line 493 of file managedPtr.h.
|
inline |
Definition at line 498 of file managedPtr.h.
|
inline |
start pulling of critical ingredients in a multithreaded situation
Definition at line 508 of file managedPtr.h.
|
inline |
stop pulling critical ingredients in a multithreaded situation
Definition at line 504 of file managedPtr.h.
|
private |
Definition at line 513 of file managedPtr.h.
|
staticprivate |
Definition at line 512 of file managedPtr.h.