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
18#if __has_include(<tbb/version.h>)
19 #include <tbb/version.h>
28 #include <tbb/task_arena.h>
31#include <tbb/task_group.h>
32#include <tbb/blocked_range.h>
45#if TBB_INTERFACE_VERSION >= 12002
46 auto ctx = tbb::task::current_context();
47 return ctx ? ctx->cancel_group_execution() :
false;
49 return tbb::task::self().cancel_group_execution();
58#if TBB_INTERFACE_VERSION >= 12002
59 auto ctx = tbb::task::current_context();
60 return ctx ? ctx->is_group_execution_cancelled() :
false;
62 return tbb::task::self().is_cancelled();
70#ifdef OPENVDB_THREAD_THREADING_RESTORE_DEPRECATION_MESSAGE_TASK
71 #undef __TBB_show_deprecation_message_task_H
72 #undef OPENVDB_THREAD_THREADING_RESTORE_DEPRECATION_MESSAGE_TASK
Definition Threading.h:38
vptr bool cancelGroupExecution()
Definition Threading.h:41
vptr bool isGroupExecutionCancelled()
Definition Threading.h:54
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:291