3 #include <Poco/ThreadLocal.h>
39 void enter(
const char *file = 0,
int line = 0);
49 Poco::ThreadLocal<bool> m_protect;
Guard calls ThreadRecursionProtector::enter() from constructor and ThreadRecursionProtector::leave() ...
Definition: ThreadRecursionProtector.h:21
ThreadRecursionProtector allows to prevent a recursive or repetitive execution of a code...
Definition: ThreadRecursionProtector.h:14
void enter(const char *file=0, int line=0)
Mark location where the recursion is possible. If the enter is called again, it would fail...
Definition: ThreadRecursionProtector.cpp:16
void leave()
Leave location where the recursion was possible. Now, the ThreadRecursionProtector::enter() would not...
Definition: ThreadRecursionProtector.cpp:29