7 #ifndef PXR_BASE_WORK_WITH_SCOPED_PARALLELISM_H
8 #define PXR_BASE_WORK_WITH_SCOPED_PARALLELISM_H
17 #include <tbb/task_arena.h>
104 return tbb::this_task_arena::isolate(std::forward<Fn>(fn));
107 return tbb::this_task_arena::isolate(std::forward<Fn>(fn));
123 return std::forward<Fn>(fn)(dispatcher);
130 #endif // PXR_BASE_WORK_WITH_SCOPED_PARALLELISM_H
PXR_NAMESPACE_OPEN_SCOPE auto WorkWithScopedParallelism(Fn &&fn, bool dropPythonGIL=true)
auto WorkWithScopedDispatcher(Fn &&fn, bool dropPythonGIL=true)
#define TF_PY_ALLOW_THREADS_IN_SCOPE()
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE