HomeSort by: relevance | last modified time | path
    Searched defs:thread (Results 1 - 25 of 43) sorted by relevancy

1 2

  /src/regress/sys/kern/softint1/
softint1.c 40 void *thread(void *);
45 thread(void *arg) function
62 pthread_create(&thr, NULL, thread, NULL);
  /src/tests/libexec/ld.elf_so/
h_thread_local_dtor.c 61 pthread_t thread; local
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
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...]
  /src/tests/lib/libc/sys/
t_ptrace_kill.c 95 pthread_t thread; local
106 SYSCALL(pthread_create(&thread, NULL, waitthread, &pid), 0);
  /src/tests/lib/libpthread/dlopen/
t_dso_pthread_create.c 78 pthread_t thread; local
94 ret = testf_dso_pthread_create(&thread, NULL, routine, arg);
t_main_pthread_create.c 62 pthread_t thread; local
65 ret = pthread_create(&thread, NULL, routine, arg);
80 pthread_t thread; local
93 ret = testf_dso_pthread_create(&thread, NULL, routine, arg);
  /src/tests/lib/libpthread/
t_siglongjmp.c 36 * its thread.
56 thread(void *arg) function
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
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_swapcontext.c 93 pthread_t thread; local
102 PTHREAD_REQUIRE(pthread_create(&thread, NULL, threadfunc, NULL));
103 PTHREAD_REQUIRE(pthread_join(thread, NULL));
t_join.c 63 pthread_t thread; local
65 PTHREAD_REQUIRE(pthread_create(&thread, NULL, threadfunc1, NULL));
66 PTHREAD_REQUIRE(pthread_join(thread, NULL));
72 pthread_t thread[25]; local
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_sigmask.c 136 * by the current thread until this handler returns.
180 pthread_t thread; local
194 PTHREAD_REQUIRE(pthread_create(&thread, NULL,
196 PTHREAD_REQUIRE(pthread_join(thread, NULL));
t_once.c 100 printf("Thread %d sees x with value %d\n", num, x);
160 "main thread deadlocked in pthread_once()");
170 pthread_t thread; local
186 PTHREAD_REQUIRE(pthread_create(&thread, NULL, once3_threadfunc, NULL));
187 PTHREAD_REQUIRE(pthread_cancel(thread));
189 PTHREAD_REQUIRE(pthread_join(thread, NULL));
  /src/sys/external/bsd/compiler_rt/dist/lib/msan/
msan_thread.cc 14 MsanThread *thread = (MsanThread*)MmapOrDie(size, __func__); local
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
138 error = pthread_create(&t[i], NULL, &thread,
t_spinlock.c 89 thread(void *cookie) function
134 error = pthread_create(&t[i], NULL, &thread,
  /src/lib/libpthread/
pthread_rwlock.c 141 pthread_t thread; local
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
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...]
pthread_mutex.c 37 * follow, but spinlocks are problematic in userspace. If a thread is
38 * preempted by the kernel while holding a spinlock, any other thread
41 * There is no good way to know that the holding thread is no longer
45 * thread holding the spinlock from getting CPU time: it would never
251 * status of the thread.
256 pthread_t thread; local
260 thread = (pthread_t)MUTEX_OWNER(owner);
261 if (thread == NULL)
263 if (thread->pt_lwpctl->lc_curcpu == LWPCTL_CPU_NONE)
331 * Nope, still held. Add thread to the list of waiters
    [all...]
  /src/regress/sys/kern/nameibench/
nameibench.c 145 thread(void *cookie) function
178 if (pthread_create(&pt, NULL, thread, (void *)(uintptr_t)i)) {
  /src/sys/arch/mips/rmi/
rmixl_cpu.c 153 int thread = cf->cf_loc[CPUCORECF_THREAD]; local
162 && (thread == CPUCORECF_THREAD_DEFAULT || thread == ca->ca_thread)
  /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
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
178 AsanThread *thread = static_cast<AsanThread *>(hook); local
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
sanitizer_stoptheworld_mac.cc 28 thread_t thread; member in struct:__sanitizer::__anon4136
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
    [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
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
384 SVCTHREAD *thread; local
477 SVCTHREAD *thread; local
    [all...]
  /src/tests/lib/libc/gen/
t_arc4random.c 82 * If arc4random has been initialized and there is a thread key
83 * (i.e., libc was built with _REENTRANT), get the thread-local
90 * If we couldn't get the thread-local state, get the global
119 * should try, and fail, to allocate a thread-local arc4random
133 * Verify the PRNG is the global one, not the thread-local one,
145 * Start routine for a thread that just grabs an output from the
227 pthread_t thread; local
273 * Create a new thread to grab output from the global state,
276 * in this thread, we can't use the global state any more.)
278 RZ(pthread_create(&thread, NULL, &arc4random_global_thread, NULL))
    [all...]

Completed in 26 milliseconds

1 2