6 #ifndef OPENVDB_THREAD_THREADING_HAS_BEEN_INCLUDED
7 #define OPENVDB_THREAD_THREADING_HAS_BEEN_INCLUDED
11 #ifndef __TBB_show_deprecation_message_task_H
12 #define __TBB_show_deprecation_message_task_H
13 #define OPENVDB_THREAD_THREADING_RESTORE_DEPRECATION_MESSAGE_TASK
23 #include <tbb/blocked_range.h>
25 #include <tbb/task_group.h>
36 #if TBB_INTERFACE_VERSION >= 12002
37 auto ctx = tbb::task::current_context();
38 return ctx ? ctx->cancel_group_execution() :
false;
40 return tbb::task::self().cancel_group_execution();
48 #if TBB_INTERFACE_VERSION >= 12002
49 auto ctx = tbb::task::current_context();
50 return ctx ? ctx->is_group_execution_cancelled() :
false;
52 return tbb::task::self().is_cancelled();
60 #ifdef OPENVDB_THREAD_THREADING_RESTORE_DEPRECATION_MESSAGE_TASK
61 #undef __TBB_show_deprecation_message_task_H
62 #undef OPENVDB_THREAD_THREADING_RESTORE_DEPRECATION_MESSAGE_TASK
66 #endif // OPENVDB_THREAD_THREADING_HAS_BEEN_INCLUDED
#define OPENVDB_USE_VERSION_NAMESPACE
bool isGroupExecutionCancelled()
**Note that the tasks the is the thread number *for the or if it s being executed by a non pool thread(this *can happen in cases where the whole pool is occupied and the calling *thread contributes to running the work load).**Thread pool.Have fun
Library and file format version numbers.
bool cancelGroupExecution()
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.