Tervel
1.0.0
A collection of wait-free containers and algorithms.
|
Helper class for RAII management of recursive helping of threads. More...
#include <recursive_action.h>
Public Member Functions | |
RecursiveAction () | |
~RecursiveAction () | |
Static Public Member Functions | |
static bool | recursive_return (bool change=false, bool value=false) |
static void | set_recursive_return () |
static void | clear_recursive_return () |
static size_t | recursive_depth (size_t i=0) |
Adds the passed value and returns the pre-incremented value. More... | |
Private Member Functions | |
DISALLOW_COPY_AND_ASSIGN (RecursiveAction) | |
Helper class for RAII management of recursive helping of threads.
Lifetime of this object handles the increment and decrement of the recursive_depth
of the given ThreadInfo object and sets the recursive_return
if needed.
|
inline |
|
inline |
|
inlinestatic |
|
private |
|
static |
Adds the passed value and returns the pre-incremented value.
i | value to increment by |
|
static |
|
inlinestatic |