Lines Matching refs:stack_size
97 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
210 …c.my_thread = (HANDLE)_beginthreadex(nullptr, unsigned(stack_size), coroutine_thread_func, &data, … in create_coroutine()
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()
307 inline void create_coroutine(coroutine_type& c, std::size_t stack_size, void* arg) { in create_coroutine() argument
309 …const std::size_t page_aligned_stack_size = (stack_size + (REG_PAGE_SIZE - 1)) & ~(REG_PAGE_SIZE -… in create_coroutine()