17 #ifndef __TBB_task_scheduler_init_H 18 #define __TBB_task_scheduler_init_H 22 #if __TBB_SUPPORTS_WORKERS_WAITING_IN_TERMINATE 63 #if __TBB_SUPPORTS_WORKERS_WAITING_IN_TERMINATE 95 #if __TBB_SUPPORTS_WORKERS_WAITING_IN_TERMINATE 96 #if TBB_USE_EXCEPTIONS 97 void blocking_terminate() {
99 internal_blocking_terminate(
true );
102 bool blocking_terminate(
const std::nothrow_t&)
__TBB_NOEXCEPT(
true) {
104 return internal_blocking_terminate(
false );
106 #endif // __TBB_SUPPORTS_WORKERS_WAITING_IN_TERMINATE 119 #if TBB_USE_EXCEPTIONS 122 initialize( number_of_threads, thread_stack_size );
#define __TBB_EXPORTED_METHOD
static int __TBB_EXPORTED_FUNC default_num_threads()
Returns the number of threads TBB scheduler would create if initialized by default.
bool is_active() const
Returns true if scheduler is active (initialized); false otherwise.
bool internal_terminate(bool blocking)
void poison_pointer(T *__TBB_atomic &)
#define __TBB_EXPORTED_FUNC
#define __TBB_NOEXCEPT(expression)
static const int deferred
Argument to initialize() or constructor that causes initialization to be deferred.
task_scheduler_init(int number_of_threads=automatic, stack_size_type thread_stack_size=0)
Shorthand for default constructor followed by call to initialize(number_of_threads).
~task_scheduler_init()
Destroy scheduler for this thread if thread has no other live task_scheduler_inits.
void __TBB_EXPORTED_METHOD terminate()
Inverse of method initialize.
#define __TBB_ASSERT(predicate, comment)
No-op version of __TBB_ASSERT.
Class delimiting the scope of task scheduler activity.
#define TBB_USE_CAPTURED_EXCEPTION
static const int automatic
Typedef for number of threads that is automatic.
void __TBB_EXPORTED_METHOD initialize(int number_of_threads=automatic)
Ensure that scheduler exists for this thread.
internal::scheduler * my_scheduler
std::size_t stack_size_type