Lines Matching defs:threads
175 struct test_thread threads[8];
179 memset(threads, 0, sizeof(threads));
181 for (i = 0; i < ARRAY_SIZE(threads); i++) {
182 r = uv_thread_create(&threads[i].thread_id, do_work, &threads[i]);
186 for (i = 0; i < ARRAY_SIZE(threads); i++) {
187 r = uv_thread_join(&threads[i].thread_id);
189 ASSERT(threads[i].thread_called == 1);
207 uv_thread_t threads[2];
212 ASSERT(0 == uv_thread_create(threads + 0, tls_thread, threads + 0));
213 ASSERT(0 == uv_thread_create(threads + 1, tls_thread, threads + 1));
214 ASSERT(0 == uv_thread_join(threads + 0));
215 ASSERT(0 == uv_thread_join(threads + 1));
225 /* 512 kB is the default stack size of threads other than the main thread