Home
last modified time | relevance | path

Searched refs:stack_size (Results 1 – 11 of 11) sorted by relevance

/oneTBB/src/tbb/
H A Dco_context.h97 void create_coroutine(coroutine_type& c, std::size_t stack_size, void* arg);
113 co_context(std::size_t stack_size, void* arg) in co_context() argument
114 : my_state(stack_size ? co_suspended : co_executing) in co_context()
116 if (stack_size) { in co_context()
118 create_coroutine(my_coroutine, stack_size, arg); in co_context()
206 inline void create_coroutine(coroutine_type& c, std::size_t stack_size, void* arg) { in create_coroutine() argument
217 if (stack_size > 0) { in create_coroutine()
218 check(pthread_attr_setstacksize(&s, stack_size), "pthread_attr_setstack_size has failed"); in create_coroutine()
279 inline void create_coroutine(coroutine_type& c, std::size_t stack_size, void* arg) { in create_coroutine() argument
281 c = CreateFiber(stack_size, co_local_wait_for_all, arg); in create_coroutine()
[all …]
H A Drml_thread_monitor.h101 …ype launch( thread_routine_type thread_routine, void* arg, std::size_t stack_size, const size_t* w…
110 …static handle_type launch( thread_routine_type thread_routine, void* arg, std::size_t stack_size );
141 …or::launch( thread_routine_type thread_routine, void* arg, std::size_t stack_size, const std::size… in launch() argument
145 …HANDLE h = (HANDLE)_beginthreadex( nullptr, unsigned(stack_size), thread_routine, arg, STACK_SIZE_… in launch()
187 …_type thread_monitor::launch( void* (*thread_routine)(void*), void* arg, std::size_t stack_size ) { in launch() argument
193 if( stack_size>0 ) in launch()
194 … check(pthread_attr_setstacksize( &s, stack_size ), "pthread_attr_setstack_size has failed" ); in launch()
H A Dgovernor.cpp136 static std::uintptr_t get_stack_base(std::size_t stack_size) { in get_stack_base() argument
140 suppress_unused_warning(stack_size); in get_stack_base()
164 stack_base = reinterpret_cast<std::uintptr_t>(stack_limit) + stack_size; in get_stack_base()
193 std::size_t stack_size = 0; in init_external_thread() local
201 stack_size = a.my_threading_control->worker_stack_size(); in init_external_thread()
202 std::uintptr_t stack_base = get_stack_base(stack_size); in init_external_thread()
204 td.enter_task_dispatcher(task_disp, calculate_stealing_threshold(stack_base, stack_size)); in init_external_thread()
H A Dscheduler_common.h435 suspend_point_type(arena* a, std::size_t stack_size, task_dispatcher& target);
558 void init_suspend_point(arena* a, std::size_t stack_size); in alignas()
568 inline std::uintptr_t calculate_stealing_threshold(std::uintptr_t base, std::size_t stack_size) { in calculate_stealing_threshold() argument
569 __TBB_ASSERT(stack_size != 0, "Stack size cannot be zero"); in calculate_stealing_threshold()
570 __TBB_ASSERT(base > stack_size / 2, "Stack anchor calculation overflow"); in calculate_stealing_threshold()
571 return base - stack_size / 2; in calculate_stealing_threshold()
H A Dthread_dispatcher.cpp24 …d_dispatcher::thread_dispatcher(threading_control& tc, unsigned hard_limit, std::size_t stack_size) in thread_dispatcher() argument
27 , my_stack_size(stack_size) in thread_dispatcher()
H A Dthread_dispatcher.h41 thread_dispatcher(threading_control& tc, unsigned hard_limit, std::size_t stack_size);
H A Dtask_dispatcher.cpp236 void task_dispatcher::init_suspend_point(arena* a, std::size_t stack_size) { in init_suspend_point() argument
239 suspend_point_type(a, stack_size, *this); in init_suspend_point()
H A Dthreading_control.cpp78 …stack_size_type stack_size = global_control_active_value_unsafe(global_control::thread_stack_size); in make_thread_dispatcher() local
81 make_cache_aligned_unique<thread_dispatcher>(tc, workers_hard_limit, stack_size); in make_thread_dispatcher()
H A Dtask_dispatcher.h94 inline suspend_point_type::suspend_point_type(arena* a, size_t stack_size, task_dispatcher& task_di… in suspend_point_type() argument
97 , m_co_context(stack_size, &task_disp) in suspend_point_type()
/oneTBB/python/rml/
H A Dipc_server.cpp71 static handle_type launch(thread_routine_type thread_routine, void* arg, size_t stack_size);
77 …dle_type ipc_thread_monitor::launch(void* (*thread_routine)(void*), void* arg, size_t stack_size) { in launch() argument
80 if( stack_size>0 ) { in launch()
81 if( pthread_attr_setstacksize( &s, stack_size ) ) return 0; in launch()
/oneTBB/doc/main/tbb_userguide/Migration_Guide/
H A DTask_Scheduler_Init.rst118 Use `oneapi::tbb::global_control(oneapi::tbb::global_control::thread_stack_size, /* stack_size */)