Home
last modified time | relevance | path

Searched refs:thread_id (Results 1 – 25 of 83) sorted by relevance

1234

/netbsd-src/external/gpl3/gcc/dist/libobjc/
H A Dthr.c153 objc_thread_t thread_id = NULL; in objc_thread_detach() local
169 if ((thread_id = __gthread_objc_thread_detach ((void *)__objc_thread_detach_function, in objc_thread_detach()
182 return thread_id; in objc_thread_detach()
308 objc_thread_t thread_id; in objc_mutex_lock() local
316 thread_id = __gthread_objc_thread_id (); in objc_mutex_lock()
317 if (mutex->owner == thread_id) in objc_mutex_lock()
328 mutex->owner = thread_id; in objc_mutex_lock()
338 objc_thread_t thread_id; in objc_mutex_trylock() local
346 thread_id = __gthread_objc_thread_id (); in objc_mutex_trylock()
347 if (mutex->owner == thread_id) in objc_mutex_trylock()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libobjc/
H A Dthr.c153 objc_thread_t thread_id = NULL; in objc_thread_detach() local
169 if ((thread_id = __gthread_objc_thread_detach ((void *)__objc_thread_detach_function, in objc_thread_detach()
182 return thread_id; in objc_thread_detach()
308 objc_thread_t thread_id; in objc_mutex_lock() local
316 thread_id = __gthread_objc_thread_id (); in objc_mutex_lock()
317 if (mutex->owner == thread_id) in objc_mutex_lock()
328 mutex->owner = thread_id; in objc_mutex_lock()
338 objc_thread_t thread_id; in objc_mutex_trylock() local
346 thread_id = __gthread_objc_thread_id (); in objc_mutex_trylock()
347 if (mutex->owner == thread_id) in objc_mutex_trylock()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/asan/
H A Dasan_debugging.cc48 uptr AsanGetStack(uptr addr, uptr *trace, u32 size, u32 *thread_id, in AsanGetStack() argument
57 if (thread_id) *thread_id = chunk.AllocTid(); in AsanGetStack()
61 if (thread_id) *thread_id = chunk.FreeTid(); in AsanGetStack()
130 uptr __asan_get_alloc_stack(uptr addr, uptr *trace, uptr size, u32 *thread_id) { in __asan_get_alloc_stack() argument
131 return AsanGetStack(addr, trace, size, thread_id, /* alloc_stack */ true); in __asan_get_alloc_stack()
135 uptr __asan_get_free_stack(uptr addr, uptr *trace, uptr size, u32 *thread_id) { in __asan_get_free_stack() argument
136 return AsanGetStack(addr, trace, size, thread_id, /* alloc_stack */ false); in __asan_get_free_stack()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/asan/
H A Dasan_debugging.cpp50 uptr AsanGetStack(uptr addr, uptr *trace, u32 size, u32 *thread_id, in AsanGetStack() argument
59 if (thread_id) *thread_id = chunk.AllocTid(); in AsanGetStack()
63 if (thread_id) *thread_id = chunk.FreeTid(); in AsanGetStack()
132 uptr __asan_get_alloc_stack(uptr addr, uptr *trace, uptr size, u32 *thread_id) { in __asan_get_alloc_stack() argument
133 return AsanGetStack(addr, trace, size, thread_id, /* alloc_stack */ true); in __asan_get_alloc_stack()
137 uptr __asan_get_free_stack(uptr addr, uptr *trace, uptr size, u32 *thread_id) { in __asan_get_free_stack() argument
138 return AsanGetStack(addr, trace, size, thread_id, /* alloc_stack */ false); in __asan_get_free_stack()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/asan/
H A Dasan_debugging.cc50 uptr AsanGetStack(uptr addr, uptr *trace, u32 size, u32 *thread_id, in AsanGetStack() argument
59 if (thread_id) *thread_id = chunk.AllocTid(); in AsanGetStack()
63 if (thread_id) *thread_id = chunk.FreeTid(); in AsanGetStack()
132 uptr __asan_get_alloc_stack(uptr addr, uptr *trace, uptr size, u32 *thread_id) { in __asan_get_alloc_stack() argument
133 return AsanGetStack(addr, trace, size, thread_id, /* alloc_stack */ true); in __asan_get_alloc_stack()
137 uptr __asan_get_free_stack(uptr addr, uptr *trace, uptr size, u32 *thread_id) { in __asan_get_free_stack() argument
138 return AsanGetStack(addr, trace, size, thread_id, /* alloc_stack */ false); in __asan_get_free_stack()
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcsd/
H A Dtcsd_threads.c47 if (tm->thread_data[i].thread_id != THREAD_NULL) { in tcsd_threads_final()
48 if ((rc = THREAD_JOIN(*(tm->thread_data[i].thread_id), NULL))) { in tcsd_threads_final()
129 if (tm->thread_data[thread_num].thread_id == THREAD_NULL) in tcsd_thread_create()
143 tm->thread_data[thread_num].thread_id = calloc(1, sizeof(THREAD_TYPE)); in tcsd_thread_create()
144 if (tm->thread_data[thread_num].thread_id == NULL) { in tcsd_thread_create()
150 if ((rc = THREAD_CREATE(tm->thread_data[thread_num].thread_id, in tcsd_thread_create()
350 if ((rc = pthread_detach(*(data->thread_id)))) { in tcsd_thread_run()
355 free(data->thread_id); in tcsd_thread_run()
356 data->thread_id = THREAD_NULL; in tcsd_thread_run()
/netbsd-src/external/gpl3/gcc.old/dist/libgcc/
H A Dgthr-posix.h370 objc_thread_t thread_id; in __gthread_objc_thread_detach() local
378 thread_id = (objc_thread_t) new_thread_handle; in __gthread_objc_thread_detach()
380 thread_id = NULL; in __gthread_objc_thread_detach()
382 return thread_id; in __gthread_objc_thread_detach()
395 pthread_t thread_id = __gthrw_(pthread_self) (); in __gthread_objc_thread_set_priority() local
400 if (__gthrw_(pthread_getschedparam) (thread_id, &policy, &params) == 0) in __gthread_objc_thread_set_priority()
419 if (__gthrw_(pthread_setschedparam) (thread_id, policy, &params) == 0) in __gthread_objc_thread_set_priority()
/netbsd-src/external/gpl3/gcc/dist/libgcc/
H A Dgthr-posix.h370 objc_thread_t thread_id; in __gthread_objc_thread_detach() local
378 thread_id = (objc_thread_t) new_thread_handle; in __gthread_objc_thread_detach()
380 thread_id = NULL; in __gthread_objc_thread_detach()
382 return thread_id; in __gthread_objc_thread_detach()
395 pthread_t thread_id = __gthrw_(pthread_self) (); in __gthread_objc_thread_set_priority() local
400 if (__gthrw_(pthread_getschedparam) (thread_id, &policy, &params) == 0) in __gthread_objc_thread_set_priority()
419 if (__gthrw_(pthread_setschedparam) (thread_id, policy, &params) == 0) in __gthread_objc_thread_set_priority()
/netbsd-src/external/mit/libuv/dist/test/
H A Dbenchmark-million-async.c32 static uv_thread_t thread_id; variable
63 ASSERT(0 == uv_thread_join(&thread_id)); in timer_cb()
101 ASSERT(0 == uv_thread_create(&thread_id, thread_cb, NULL)); in BENCHMARK_IMPL()
H A Dtest-thread.c34 uv_thread_t thread_id; member
42 uv_thread_t thread_id; member
50 uv_thread_t thread_id; member
182 r = uv_thread_create(&threads[i].thread_id, do_work, &threads[i]); in TEST_IMPL()
187 r = uv_thread_join(&threads[i].thread_id); in TEST_IMPL()
H A Dtest-thread-equal.c29 uv_thread_t *thread_id = arg; in check_thread() local
35 *thread_id = uv_thread_self(); in check_thread()
/netbsd-src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/src/
H A Dbenchmark_api_internal.cc7 size_t iters, int thread_id, internal::ThreadTimer* timer, in Run() argument
9 State st(iters, arg, thread_id, threads, timer, manager); in Run()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/
H A Dsanitizer_stoptheworld_testlib.cc48 pthread_t thread_id; in StopTheWorldTestLibConstructor() local
49 pthread_create(&thread_id, NULL, SuspenderThread, NULL); in StopTheWorldTestLibConstructor()
H A Dsanitizer_stoptheworld_test.cc74 pthread_t thread_id; in TEST() local
77 pthread_create_result = pthread_create(&thread_id, NULL, IncrementerThread, in TEST()
86 ASSERT_EQ(0, pthread_join(thread_id, NULL)); in TEST()
/netbsd-src/external/gpl3/gcc/dist/libgcc/config/pa/
H A Dgthr-dce.h164 objc_thread_t thread_id; in __gthread_objc_thread_detach() local
174 thread_id = *(objc_thread_t *) &new_thread_handle; in __gthread_objc_thread_detach()
178 thread_id = NULL; in __gthread_objc_thread_detach()
180 return thread_id; in __gthread_objc_thread_detach()
/netbsd-src/external/gpl3/gcc.old/dist/libgcc/config/pa/
H A Dgthr-dce.h164 objc_thread_t thread_id; in __gthread_objc_thread_detach() local
174 thread_id = *(objc_thread_t *) &new_thread_handle; in __gthread_objc_thread_detach()
178 thread_id = NULL; in __gthread_objc_thread_detach()
180 return thread_id; in __gthread_objc_thread_detach()
/netbsd-src/sys/external/bsd/compiler_rt/dist/include/sanitizer/
H A Dasan_interface.h95 int *thread_id);
101 int *thread_id);
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/include/sanitizer/
H A Dasan_interface.h93 int *thread_id);
99 int *thread_id);
/netbsd-src/external/lgpl3/mpfr/dist/tests/
H A Dtconst_pi.c64 pthread_t thread_id[MAX_THREAD]; in run_pthread_test() local
70 error_code = pthread_create(&thread_id[i], in run_pthread_test()
77 error_code = pthread_join (thread_id[i], NULL); in run_pthread_test()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/include/sanitizer/
H A Dasan_interface.h211 int *thread_id);
226 int *thread_id);
/netbsd-src/external/gpl3/gcc.old/dist/libgcc/config/i386/
H A Dgthr-win32.h120 DWORD thread_id = 0; in __gthread_objc_thread_detach() local
124 arg, 0, &thread_id))) in __gthread_objc_thread_detach()
125 thread_id = 0; in __gthread_objc_thread_detach()
127 return (objc_thread_t) (INT_PTR) thread_id; in __gthread_objc_thread_detach()
/netbsd-src/external/gpl3/gcc/dist/libgcc/config/i386/
H A Dgthr-win32.h120 DWORD thread_id = 0; in __gthread_objc_thread_detach() local
124 arg, 0, &thread_id))) in __gthread_objc_thread_detach()
125 thread_id = 0; in __gthread_objc_thread_detach()
127 return (objc_thread_t) (INT_PTR) thread_id; in __gthread_objc_thread_detach()
/netbsd-src/external/apache2/llvm/dist/llvm/utils/unittest/googletest/src/
H A Dgtest-port.cc470 DWORD thread_id; in CreateThread() local
477 &thread_id); // Need a valid pointer for the call to work under Win98. in CreateThread()
593 static void OnThreadExit(DWORD thread_id) { in OnThreadExit() argument
594 GTEST_CHECK_(thread_id != 0) << ::GetLastError(); in OnThreadExit()
603 thread_to_thread_locals->find(thread_id); in OnThreadExit()
632 static void StartWatcherThreadFor(DWORD thread_id) { in StartWatcherThreadFor() argument
637 thread_id); in StartWatcherThreadFor()
646 reinterpret_cast<LPVOID>(new ThreadIdAndHandle(thread_id, thread)), in StartWatcherThreadFor()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_stoptheworld_linux_libcdep.cc95 bool ContainsTid(tid_t thread_id) const;
136 bool SuspendThread(tid_t thread_id);
524 bool SuspendedThreadsListLinux::ContainsTid(tid_t thread_id) const { in ContainsTid()
526 if (thread_ids_[i] == thread_id) return true; in ContainsTid()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_stoptheworld_linux_libcdep.cc109 bool ContainsTid(tid_t thread_id) const;
150 bool SuspendThread(tid_t thread_id);
550 bool SuspendedThreadsListLinux::ContainsTid(tid_t thread_id) const { in ContainsTid()
552 if (thread_ids_[i] == thread_id) return true; in ContainsTid()

1234