Home
last modified time | relevance | path

Searched refs:threads (Results 1 – 12 of 12) sorted by relevance

/sysdeps/pthread/
A Dtst-pthread_kill-exiting.c89 pthread_t threads[4]; in do_test() local
90 xpthread_barrier_init (&barrier_1, NULL, array_length (threads) + 2); in do_test()
91 xpthread_barrier_init (&barrier_2, NULL, array_length (threads) + 1); in do_test()
93 for (int i = 0; i < array_length (threads); ++i) in do_test()
94 threads[i] = xpthread_create (NULL, sender_thread_function, NULL); in do_test()
116 for (int i = 0; i < array_length (threads); ++i) in do_test()
117 xpthread_join (threads[i]); in do_test()
A Dtst-pthread-setuid-loop.c24 enum { threads = 4 }; enumerator
51 pthread_t thread_ids[threads]; in do_test()
52 for (int j = 0; j < threads; ++j) in do_test()
54 for (int j = 0; j < threads; ++j) in do_test()
A Dtst-mutex10.c70 pthread_t *threads = xmalloc (thread_count * sizeof (pthread_t)); in do_test() local
75 threads[i] = xpthread_create (NULL, thr_func, (void *) (uintptr_t) i); in do_test()
78 xpthread_join (threads[i]); in do_test()
81 free (threads); in do_test()
A Dtst-create-detached.c122 pthread_t threads[creator_threads]; in do_test() local
125 threads[i] = xpthread_create (NULL, creator_thread, NULL); in do_test()
128 xpthread_join (threads[i]); in do_test()
A Dtst-memstream.c65 pthread_t threads[thread_count]; in do_test() local
72 threads[i] = xpthread_create (NULL, thread_func, args + i); in do_test()
76 xpthread_join (threads[i]); in do_test()
A Dtst-barrier3.c114 pthread_t threads[NTHREADS]; in do_test() local
129 if (pthread_create (&threads[i], NULL, worker, (void *) (long int) i) != 0) in do_test()
137 if (pthread_join (threads[i], &res) != 0 || res != NULL) in do_test()
A Dtst-cond24.c36 static pthread_t threads[THREADS_NUM]; variable
180 rv = pthread_create (&threads[i], NULL, f, &retval[i]); in do_test_wait()
219 rv = pthread_join (threads[i], &ret); in do_test_wait()
A DMakefile24 headers += threads.h
/sysdeps/x86/
A Ddl-cacheinfo.h500 unsigned int threads = *threads_ptr; in get_common_cache_info() local
649 && threads > 2 in get_common_cache_info()
659 threads = 2; in get_common_cache_info()
667 threads = threads_l3; in get_common_cache_info()
674 threads in get_common_cache_info()
682 shared /= threads; in get_common_cache_info()
694 *threads_ptr = threads; in get_common_cache_info()
708 unsigned int threads = 0; in dl_init_cacheinfo() local
813 threads = (ebx >> 16) & 0xff; in dl_init_cacheinfo()
818 if (threads > 0) in dl_init_cacheinfo()
[all …]
/sysdeps/powerpc/
A Dtest-get_hwcap.c150 pthread_t threads[2]; in do_test() local
165 threads[i] = xpthread_create (&attr, t1, (void *)i); in do_test()
168 TEST_VERIFY_EXIT (xpthread_join (threads[i]) == NULL); in do_test()
/sysdeps/mach/hurd/
A D_Fork.c88 thread_t *threads = NULL; in _Fork() local
97 assert (threads); in _Fork()
100 if (threads[i] != ss->thread) in _Fork()
101 __thread_resume (threads[i]); in _Fork()
194 if (err = __task_threads (__mach_task_self (), &threads, &nthreads)) in _Fork()
348 if (portnames[i] == threads[j]) in _Fork()
579 if (threads) in _Fork()
582 __mach_port_deallocate (__mach_task_self (), threads[i]); in _Fork()
584 (vm_address_t) threads, in _Fork()
585 nthreads * sizeof (*threads)); in _Fork()
A Dptrace.c58 thread_t threadbuf[3], *threads = threadbuf; in ptrace() local
60 error_t err = __task_threads (task, &threads, &nthreads); in ptrace()
65 *thread = threads[0]; /* Assume user thread is first. */ in ptrace()
67 __mach_port_deallocate (__mach_task_self (), threads[i]); in ptrace()
68 if (threads != threadbuf) in ptrace()
70 (vm_address_t) threads, nthreads * sizeof threads[0]); in ptrace()

Completed in 21 milliseconds