HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_TaskLockWithArena Class Reference

UT_TaskLock that avoids deadlocks when used with TBB task scheduling. More...

#include <UT_TaskLock.h>

+ Inheritance diagram for UT_TaskLockWithArena:

Public Member Functions

template<typename F >
void lockedExecute (const F &functor)
 

Detailed Description

UT_TaskLock that avoids deadlocks when used with TBB task scheduling.

Definition at line 285 of file UT_TaskLock.h.

Member Function Documentation

template<typename F >
void UT_TaskLockWithArena::lockedExecute ( const F &  functor)
inline

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 295 of file UT_TaskLock.h.


The documentation for this class was generated from the following file: