/src/regress/sys/kern/softint1/ |
softint1.c | 40 void *thread(void *); 45 thread(void *arg) function in typeref:typename:void * 62 pthread_create(&thr, NULL, thread, NULL);
|
/src/tests/lib/libpthread/dlopen/ |
t_main_pthread_create.c | 62 pthread_t thread; local in function:ATF_TC_BODY 65 ret = pthread_create(&thread, NULL, routine, arg); 80 pthread_t thread; local in function:ATF_TC_BODY 93 ret = testf_dso_pthread_create(&thread, NULL, routine, arg);
|
t_dso_pthread_create.c | 64 pthread_t thread; local in function:ATF_TC_BODY 84 ret = testf_dso_pthread_create(&thread, NULL, routine, arg);
|
/src/tests/lib/libpthread/ |
t_siglongjmp.c | 36 * its thread. 56 thread(void *arg) function in typeref:typename:void * 71 "Checks siglongjmp() out of a signal handler back into its thread"); 83 PTHREAD_REQUIRE(pthread_create(&t, NULL, thread, NULL));
|
t_sleep.c | 72 pthread_t thread; local in function:ATF_TC_BODY 84 PTHREAD_REQUIRE(pthread_create(&thread, NULL, threadfunc, NULL)); 86 /* make sure the signal is delivered to the child thread */ 96 PTHREAD_REQUIRE(pthread_join(thread, NULL));
|
t_join.c | 63 pthread_t thread; local in function:ATF_TC_BODY 65 PTHREAD_REQUIRE(pthread_create(&thread, NULL, threadfunc1, NULL)); 66 PTHREAD_REQUIRE(pthread_join(thread, NULL)); 72 pthread_t thread[25]; local in function:threadfunc1 83 * Check alignment of thread stack, if supported. 90 * out, if we try to join the calling thread. 102 for (i = 0; i < __arraycount(thread); i++) { 109 rv = pthread_create(&thread[i], &attr, threadfunc2, (void *)i); 116 PTHREAD_REQUIRE(pthread_join(thread[i], &val)); 124 * Once the thread has returned, ESRCH shoul [all...] |
t_swapcontext.c | 93 pthread_t thread; local in function:ATF_TC_BODY 102 PTHREAD_REQUIRE(pthread_create(&thread, NULL, threadfunc, NULL)); 103 PTHREAD_REQUIRE(pthread_join(thread, NULL));
|
t_sigmask.c | 136 * by the current thread until this handler returns. 180 pthread_t thread; local in function:ATF_TC_BODY 194 PTHREAD_REQUIRE(pthread_create(&thread, NULL, 196 PTHREAD_REQUIRE(pthread_join(thread, NULL));
|
t_cond.c | 56 printf("2: Second thread.\n"); 107 printf("1: Thread joined.\n"); 115 printf("2: Second thread.\n"); 168 printf("1: Thread joined.\n"); 176 printf("2: Second thread.\n"); 227 printf("1: Thread joined.\n"); 233 printf("2: Second thread.\n"); 295 printf("1: Thread joined. Final count = %d, total = %d\n", 363 printf("2: Second thread.\n"); 425 printf("1: Thread joined. Final count = %d, total = %d\n", count 529 pthread_t thread; local in function:ATF_TC_BODY [all...] |
/src/tests/libexec/ld.elf_so/ |
h_thread_local_dtor.c | 61 pthread_t thread; local in function:main 72 if (pthread_create(&thread, NULL, thread_helper, testfunc)) 90 if (pthread_join(thread, NULL))
|
/src/tests/rump/kernspace/ |
busypage.c | 52 thread(void *arg) function in typeref:typename:void 82 thread, NULL, &newl, "jointest"); 84 panic("thread creation failed: %d", rv); 99 panic("thread join failed: %d", rv);
|
/src/lib/librumpuser/ |
rumpfiber.h | 36 struct thread { struct 41 TAILQ_ENTRY(thread) thread_list; 57 void wake(struct thread *thread); 58 void block(struct thread *thread); 59 struct thread *init_mainthread(void *); 63 struct thread* create_thread(const char *name, void *cookie, 66 int is_runnable(struct thread *); 67 void set_runnable(struct thread *); [all...] |
Makefile | 37 .error Unsupported curlwp scheme for thread model: ${RUMP_CURLWP} target
|
/src/tests/lib/libc/sys/ |
t_ptrace_kill.c | 95 pthread_t thread; local in function:ATF_TC_BODY 106 SYSCALL(pthread_create(&thread, NULL, waitthread, &pid), 0);
|
/src/sys/external/bsd/compiler_rt/dist/lib/msan/ |
msan_thread.cc | 14 MsanThread *thread = (MsanThread*)MmapOrDie(size, __func__); local in function:__msan::MsanThread::Create 15 thread->start_routine_ = start_routine; 16 thread->arg_ = arg; 17 thread->destructor_iterations_ = GetPthreadDestructorIterations(); 19 return thread; 58 // We also clear the shadow on thread destruction because 71 // start_routine_ == 0 if we're on the main thread or on one of the
|
/src/tests/lib/libc/membar/ |
t_dekker.c | 98 thread(void *cookie) function in typeref:typename:void * 138 error = pthread_create(&t[i], NULL, &thread,
|
t_spinlock.c | 89 thread(void *cookie) function in typeref:typename:void * 138 error = pthread_create(&t[i], NULL, &thread,
|
/src/tests/modules/ |
t_kcov.c | 209 pthread_t thread; local in function:ATF_TC_BODY 214 pthread_create(&thread, NULL, 219 pthread_join(thread, NULL); 411 /* Test mapped buffer access from a custom thread */ 420 pthread_t thread; local in function:ATF_TC_BODY 431 pthread_create(&thread, NULL, thread_buffer_access_test_helper, 433 pthread_join(thread, NULL); 458 pthread_t thread; local in function:ATF_TC_BODY 470 /* The thread does something, does not matter what exactly. */ 471 pthread_create(&thread, NULL, thread_test_helper, __UNVOLATILE(buf)) 515 pthread_t thread[32]; local in function:kcov_multiple_threads [all...] |
/src/lib/libpthread/ |
pthread_rwlock.c | 141 pthread_t thread; local in function:pthread__rwlock_spin 147 thread = (pthread_t)(owner & RW_THREAD); 148 if (__predict_false(thread == NULL) || 149 thread->pt_lwpctl->lc_curcpu == LWPCTL_CPU_NONE) 448 pthread_t self, thread; local in function:pthread_rwlock_unlock 514 if ((thread = PTQ_FIRST(&ptr->ptr_wblocked)) != NULL) { 515 _DIAGASSERT(((uintptr_t)thread & RW_FLAGMASK) == 0); 516 new = (uintptr_t)thread | RW_WRITE_LOCKED; 518 if (PTQ_NEXT(thread, pt_sleep) != NULL) 533 thread->pt_rwlocked = _RW_LOCKED [all...] |
/src/regress/sys/kern/nameibench/ |
nameibench.c | 145 thread(void *cookie) function in typeref:typename:void * 178 if (pthread_create(&pt, NULL, thread, (void *)(uintptr_t)i)) {
|
/src/sys/external/bsd/compiler_rt/dist/lib/asan/ |
asan_fuchsia.cc | 74 // will never be called. Instead, our own thread destruction hook 90 // Shared setup between thread creation and startup for the initial thread. 96 AsanThread *thread = (AsanThread *)MmapOrDie(AsanThreadMmapSize(), __func__); local in function:__asan::CreateAsanThread 98 AsanThreadContext::CreateThreadContextArgs args = {thread, stack}; 104 // thread itself. But on Fuchsia we already know the stack address 107 thread->Init(&options); 109 return thread; 113 // We're in the creator thread before the new thread is actually started 162 AsanThread *thread = static_cast<AsanThread *>(hook); local in function:__asan::ThreadCreateHook 178 AsanThread *thread = static_cast<AsanThread *>(hook); local in function:__asan::ThreadStartHook [all...] |
/src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
sanitizer_stoptheworld_mac.cc | 28 thread_t thread; member in struct:__sanitizer::__anon22ed31e80108 38 bool ContainsThread(thread_t thread) const; 39 void Append(thread_t thread); 118 return threads_[index].thread; 125 bool SuspendedThreadsListMac::ContainsThread(thread_t thread) const { 127 if (threads_[i].thread == thread) return true; 132 void SuspendedThreadsListMac::Append(thread_t thread) { 135 kern_return_t err = thread_info(thread, THREAD_IDENTIFIER_INFO, 138 VReport(1, "Error - unable to get thread ident for a thread\n") 146 thread_t thread = GetThread(index); local in function:__sanitizer::SuspendedThreadsListMac::GetRegistersAndSP [all...] |
/src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
tsan_debugging.cc | 28 if (typ == ReportTypeThreadLeak) return "thread-leak"; 166 ReportThread *thread = rep->threads[idx]; local in function:__tsan_get_report_thread 167 *tid = thread->id; 168 *os_id = thread->os_id; 169 *running = thread->running; 170 *name = thread->name; 171 *parent_tid = thread->parent_tid; 172 if (thread->stack) CopyTrace(thread->stack->frames, trace, trace_size);
|
/src/sys/fs/nfs/common/ |
nfs_fha.c | 108 "single nfsd thread should be working on at any time"); 255 fha_hash_entry_add_thread(struct fha_hash_entry *fhe, SVCTHREAD *thread) 259 thread->st_p2 = 0; 260 LIST_INSERT_HEAD(&fhe->threads, thread, st_alink); 265 fha_hash_entry_remove_thread(struct fha_hash_entry *fhe, SVCTHREAD *thread) 269 KASSERT(thread->st_p2 == 0, 270 ("%d reqs on removed thread %p", thread->st_p2, thread)); 271 LIST_REMOVE(thread, st_alink) 297 SVCTHREAD *thread, *min_thread = NULL; local in function:fha_hash_entry_choose_thread 384 SVCTHREAD *thread; local in function:fha_assign 477 SVCTHREAD *thread; local in function:fhe_stats_sysctl [all...] |
/src/sys/arch/mips/rmi/ |
rmixl_cpu.c | 153 int thread = cf->cf_loc[CPUCORECF_THREAD]; local in function:cpu_rmixl_match 162 && (thread == CPUCORECF_THREAD_DEFAULT || thread == ca->ca_thread)
|