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
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
Definition Threading.h:30
vptr bool cancelGroupExecution()
Definition Threading.h:33
vptr bool isGroupExecutionCancelled()
Definition Threading.h:46
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:218