21 #ifndef __TBB_global_control_H 22 #define __TBB_global_control_H 24 #if !TBB_PREVIEW_GLOBAL_CONTROL && !__TBB_BUILD 25 #error Set TBB_PREVIEW_GLOBAL_CONTROL before including global_control.h 28 #include "tbb_stddef.h" 31 namespace interface9 {
36 max_allowed_parallelism,
42 my_value(value), my_next(NULL), my_param(p) {
43 __TBB_ASSERT(my_param < parameter_max,
"Invalid parameter");
44 #if __TBB_WIN8UI_SUPPORT 46 if (p==thread_stack_size)
48 #elif __TBB_x86_64 && (_WIN32 || _WIN64) 49 if (p==thread_stack_size)
50 __TBB_ASSERT_RELEASE((
unsigned)value == value,
"Stack size is limited to unsigned int range");
52 if (my_param==max_allowed_parallelism)
53 __TBB_ASSERT_RELEASE(my_value>0,
"max_allowed_parallelism cannot be 0.");
58 __TBB_ASSERT(my_param < parameter_max,
"Invalid parameter. Probably the object was corrupted.");
59 #if __TBB_WIN8UI_SUPPORT 61 if (my_param==thread_stack_size)
67 static size_t active_value(parameter p) {
68 __TBB_ASSERT(p < parameter_max,
"Invalid parameter");
69 return active_value((
int)p);
76 void __TBB_EXPORTED_METHOD internal_create();
77 void __TBB_EXPORTED_METHOD internal_destroy();
78 static size_t __TBB_EXPORTED_FUNC active_value(
int param);
86 #endif // __TBB_global_control_H Definition: global_control.h:33
The namespace tbb contains all components of the library.
Definition: parallel_for.h:44