Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::this_task_arena Namespace Reference

Functions

int max_concurrency ()
 Returns the maximal number of threads that can work inside the arena. More...
 
int current_thread_index ()
 Returns the index, aka slot number, of the calling thread in its current arena. More...
 

Function Documentation

int tbb::this_task_arena::current_thread_index ( )
inline

Returns the index, aka slot number, of the calling thread in its current arena.

Definition at line 484 of file task_arena.h.

Referenced by tbb::interface9::internal::get_initial_partition_head().

484  {
486  return idx == -1 ? tbb::task_arena::not_initialized : idx;
487  }
int current_thread_index()
Returns the index, aka slot number, of the calling thread in its current arena.
Definition: task_arena.h:484

Here is the caller graph for this function:

int tbb::this_task_arena::max_concurrency ( )
inline

Returns the maximal number of threads that can work inside the arena.

Definition at line 490 of file task_arena.h.

490  {
491  return tbb::task_arena::internal_max_concurrency(NULL);
492  }

Copyright © 2005-2020 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.