12 #ifndef __EXPR_LOCK_H_INCLUDED__
13 #define __EXPR_LOCK_H_INCLUDED__
26 #if H_BUILD_PARALLEL_COOK_MODE
37 lockedExecute(
const F &functor)
39 theStaticCounter.add(1);
47 bool was_first =
false;
70 theStaticCounter.add(1);
78 bool was_first =
false;
96 lockedExecuteWithoutArena(
const F &functor)
98 theStaticCounter.add(1);
115 static bool theIsDisabled;
136 #endif // __EXPR_LOCK_H_INCLUDED__
EXPR_StaticLock EXPR_GlobalStaticLock
EXPR_Lock::Scope EXPR_AutoLock
UT_TaskLockWithArena EXPR_StaticLock
UT_TaskLock that avoids deadlocks when used with TBB task scheduling.
EXPR_API EXPR_GlobalStaticLock & ev_GlobalEvalLock()