Home
last modified time | relevance | path

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

/libuv/test/
H A Dtest-thread.c220 expected = arg == NULL ? 0 : ((uv_thread_options_t*)arg)->stack_size; in thread_check_stack()
229 size_t stack_size; in thread_check_stack()
235 ASSERT_OK(pthread_attr_getstacksize(&attr, &stack_size)); in thread_check_stack()
236 expected = arg == NULL ? 0 : ((uv_thread_options_t*)arg)->stack_size; in thread_check_stack()
239 ASSERT_GE(stack_size, expected); in thread_check_stack()
257 options.stack_size = 1024 * 1024; in TEST_IMPL()
267 options.stack_size = 0; in TEST_IMPL()
272 options.stack_size = 42; in TEST_IMPL()
278 options.stack_size = PTHREAD_STACK_MIN - 42; /* unaligned size */ in TEST_IMPL()
283 options.stack_size = PTHREAD_STACK_MIN / 2 - 42; /* unaligned size */ in TEST_IMPL()
[all …]
/libuv/src/win/
H A Dthread.c106 size_t stack_size; in uv_thread_create_ex() local
109 stack_size = in uv_thread_create_ex()
110 params->flags & UV_THREAD_HAS_STACK_SIZE ? params->stack_size : 0; in uv_thread_create_ex()
112 if (stack_size != 0) { in uv_thread_create_ex()
116 stack_size = (stack_size + pagesize - 1) &~ (pagesize - 1); in uv_thread_create_ex()
118 if ((unsigned)stack_size != stack_size) in uv_thread_create_ex()
132 (unsigned)stack_size, in uv_thread_create_ex()
/libuv/src/unix/
H A Dthread.c137 size_t stack_size; in uv_thread_create_ex() local
146 stack_size = in uv_thread_create_ex()
147 params->flags & UV_THREAD_HAS_STACK_SIZE ? params->stack_size : 0; in uv_thread_create_ex()
150 if (stack_size == 0) { in uv_thread_create_ex()
151 stack_size = uv__thread_stack_size(); in uv_thread_create_ex()
155 stack_size = (stack_size + pagesize - 1) &~ (pagesize - 1); in uv_thread_create_ex()
157 if (stack_size < min_stack_size) in uv_thread_create_ex()
158 stack_size = min_stack_size; in uv_thread_create_ex()
161 if (stack_size > 0) { in uv_thread_create_ex()
167 if (pthread_attr_setstacksize(attr, stack_size)) in uv_thread_create_ex()
/libuv/docs/src/
H A Dthreading.rst69 size_t stack_size;
85 If `UV_THREAD_HAS_STACK_SIZE` is set, `stack_size` specifies a stack size for the new thread.
/libuv/src/
H A Dthreadpool.c231 config.stack_size = 8u << 20; /* 8 MB */ in init_threads()
/libuv/include/
H A Duv.h1881 size_t stack_size; member

Completed in 17 milliseconds