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>
37 #if TBB_INTERFACE_VERSION >= 12002
38 auto ctx = tbb::task::current_context();
39 return ctx ? ctx->cancel_group_execution() :
false;
41 return tbb::task::self().cancel_group_execution();
50 #if TBB_INTERFACE_VERSION >= 12002
51 auto ctx = tbb::task::current_context();
52 return ctx ? ctx->is_group_execution_cancelled() :
false;
54 return tbb::task::self().is_cancelled();
62 #ifdef OPENVDB_THREAD_THREADING_RESTORE_DEPRECATION_MESSAGE_TASK
63 #undef __TBB_show_deprecation_message_task_H
64 #undef OPENVDB_THREAD_THREADING_RESTORE_DEPRECATION_MESSAGE_TASK
68 #endif // OPENVDB_THREAD_THREADING_HAS_BEEN_INCLUDED
#define OPENVDB_USE_VERSION_NAMESPACE
OPENVDB_UBSAN_SUPPRESS("vptr") bool cancelGroupExecution()
**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.
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.