HDK
|
UT_TaskLock that avoids deadlocks when used with TBB task scheduling. More...
#include <UT_TaskLock.h>
Public Member Functions | |
template<typename F > | |
void | lockedExecute (const F &functor) |
template<typename F > | |
void | lockedExecuteWithoutArena (const F &functor) |
UT_TaskLock that avoids deadlocks when used with TBB task scheduling.
Definition at line 291 of file UT_TaskLock.h.
Performs the functor F while inside this lock scope in UT_TaskArena. This method allows the optimization that if we're calling this while the lock is already held in the same task scope, then we can avoid creating an unnecessary task arena.
Definition at line 301 of file UT_TaskLock.h.
|
inline |
Performs the functor F while inside this lock scope OUTSIDE an arena.
Definition at line 321 of file UT_TaskLock.h.