6#ifndef OPENVDB_THREAD_THREADING_HAS_BEEN_INCLUDED
7#define OPENVDB_THREAD_THREADING_HAS_BEEN_INCLUDED
9#include <openvdb/version.h>
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
17#include <tbb/blocked_range.h>
26#include <tbb/task_arena.h>
27#include <tbb/task_group.h>
39#if TBB_INTERFACE_VERSION >= 12002
40 auto ctx = tbb::task::current_context();
41 return ctx ? ctx->cancel_group_execution() :
false;
43 return tbb::task::self().cancel_group_execution();
52#if TBB_INTERFACE_VERSION >= 12002
53 auto ctx = tbb::task::current_context();
54 return ctx ? ctx->is_group_execution_cancelled() :
false;
56 return tbb::task::self().is_cancelled();
64#ifdef OPENVDB_THREAD_THREADING_RESTORE_DEPRECATION_MESSAGE_TASK
65 #undef __TBB_show_deprecation_message_task_H
66 #undef OPENVDB_THREAD_THREADING_RESTORE_DEPRECATION_MESSAGE_TASK
Definition Threading.h:32
vptr bool cancelGroupExecution()
Definition Threading.h:35
vptr bool isGroupExecutionCancelled()
Definition Threading.h:48
Definition Exceptions.h:13
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition version.h.in:121
#define OPENVDB_USE_VERSION_NAMESPACE
Definition version.h.in:284