/external/ltp/include/ |
tst_safe_pthread.h | 22 pthread_t *thread_id, const pthread_attr_t *attr, 24 #define SAFE_PTHREAD_CREATE(thread_id, attr, thread_fn, arg) \ 25 safe_pthread_create(__FILE__, __LINE__, thread_id, attr, thread_fn, arg) 28 pthread_t thread_id, void **retval); 29 #define SAFE_PTHREAD_JOIN(thread_id, retval) \ 30 safe_pthread_join(__FILE__, __LINE__, thread_id, retval)
|
/external/ltp/lib/ |
safe_pthread.c | 25 pthread_t *thread_id, const pthread_attr_t *attr, 30 rval = pthread_create(thread_id, attr, thread_fn, arg); 34 "pthread_create(%p,%p,%p,%p) failed: %s", thread_id, 42 pthread_t thread_id, void **retval) 46 rval = pthread_join(thread_id, retval);
|
/external/mesa3d/src/gallium/tests/unit/ |
pipe_barrier_test.c | 52 int thread_id = *((int *) thread_data); local 54 printf("thread %d starting\n", thread_id); 55 os_time_sleep(thread_id * 1000 * 1000); 56 printf("thread %d before barrier\n", thread_id); 58 printf("thread %d exiting\n", thread_id);
|
/external/valgrind/helgrind/tests/ |
tc03_re_excl.c | 25 pthread_t thread_id; local 30 pthread_create(&thread_id, 0, worker_thread, (void*)x); 36 pthread_join(thread_id, 0);
|
/prebuilts/go/darwin-x86/misc/cgo/test/ |
cthread_windows.c | 27 uintptr_t thread_id[MaxThread]; local 32 thread_id[i] = _beginthreadex(0, 0, addThread, &max, 0, 0); 34 WaitForSingleObject((HANDLE)thread_id[i], INFINITE); 35 CloseHandle((HANDLE)thread_id[i]);
|
cthread_unix.c | 26 pthread_t thread_id[MaxThread]; local 31 pthread_create(&thread_id[i], 0, addThread, &max); 33 pthread_join(thread_id[i], 0);
|
/prebuilts/go/linux-x86/misc/cgo/test/ |
cthread_windows.c | 27 uintptr_t thread_id[MaxThread]; local 32 thread_id[i] = _beginthreadex(0, 0, addThread, &max, 0, 0); 34 WaitForSingleObject((HANDLE)thread_id[i], INFINITE); 35 CloseHandle((HANDLE)thread_id[i]);
|
cthread_unix.c | 26 pthread_t thread_id[MaxThread]; local 31 pthread_create(&thread_id[i], 0, addThread, &max); 33 pthread_join(thread_id[i], 0);
|
/external/compiler-rt/test/asan/TestCases/ |
debug_stacks.cc | 30 int thread_id; local 31 num_frames = __asan_get_alloc_stack(mem, trace, num_frames, &thread_id); 36 fprintf(stderr, "thread id = %d\n", thread_id); 44 num_frames = __asan_get_free_stack(mem, trace, num_frames, &thread_id); 49 fprintf(stderr, "thread id = %d\n", thread_id);
|
/external/compiler-rt/test/lsan/TestCases/ |
cleanup_in_tsd_destructor.c | 37 pthread_t thread_id; local 38 res = pthread_create(&thread_id, 0, thread_func, 0); 40 res = pthread_join(thread_id, 0);
|
disabler_in_tsd_destructor.c | 33 pthread_t thread_id; local 34 res = pthread_create(&thread_id, 0, thread_func, 0); 36 res = pthread_join(thread_id, 0);
|
use_stacks_threaded.cc | 27 pthread_t thread_id; local 28 int res = pthread_create(&thread_id, 0, stacks_thread_func, &sync);
|
leak_check_before_thread_started.cc | 24 pthread_t thread_id; local 34 int res = pthread_create(&thread_id, &attr, func, arg);
|
use_registers.cc | 47 pthread_t thread_id; local 48 int res = pthread_create(&thread_id, 0, registers_thread_func, &sync);
|
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_stoptheworld.h | 37 bool Contains(SuspendedThreadID thread_id) const { 39 if (thread_ids_[i] == thread_id) 44 void Append(SuspendedThreadID thread_id) { 45 thread_ids_.push_back(thread_id);
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
sanitizer_stoptheworld_testlib.cc | 48 pthread_t thread_id; local 49 pthread_create(&thread_id, NULL, SuspenderThread, NULL);
|
/frameworks/base/core/proto/android/os/ |
looper.proto | 27 int64 thread_id = 2;
|
/system/extras/memory_replay/tests/ |
ThreadTest.cpp | 54 pthread_t thread_id; local 55 ASSERT_TRUE(pthread_create(&thread_id, nullptr, ThreadWaitForReady, &thread_data) == 0); 62 ASSERT_TRUE(pthread_join(thread_id, nullptr) == 0); 82 pthread_t thread_id; local 83 ASSERT_TRUE(pthread_create(&thread_id, nullptr, ThreadWaitForPending, &thread_data) == 0); 90 ASSERT_TRUE(pthread_join(thread_id, nullptr) == 0);
|
/external/compiler-rt/lib/asan/ |
asan_debugging.cc | 84 static uptr AsanGetStack(uptr addr, uptr *trace, u32 size, u32 *thread_id, 93 if (thread_id) *thread_id = chunk.AllocTid(); 97 if (thread_id) *thread_id = chunk.FreeTid(); 126 uptr __asan_get_alloc_stack(uptr addr, uptr *trace, uptr size, u32 *thread_id) { 127 return AsanGetStack(addr, trace, size, thread_id, /* alloc_stack */ true); 131 uptr __asan_get_free_stack(uptr addr, uptr *trace, uptr size, u32 *thread_id) { 132 return AsanGetStack(addr, trace, size, thread_id, /* alloc_stack */ false);
|
/external/google-breakpad/src/client/ios/handler/ |
ios_exception_minidump_generator.h | 49 virtual bool WriteThreadStream(mach_port_t thread_id, MDRawThread *thread);
|
/external/eigen/unsupported/test/ |
cxx11_non_blocking_thread_pool.cpp | 39 const int thread_id = tp.CurrentThreadId(); 40 VERIFY_GE(thread_id, 0); 41 VERIFY_LE(thread_id, kThreads - 1);
|
/external/google-breakpad/src/client/windows/crash_generation/ |
client_info.h | 52 DWORD* thread_id, 64 DWORD* thread_id() const { return thread_id_; } function in class:google_breakpad::ClientInfo 92 bool GetClientThreadId(DWORD* thread_id) const;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/ |
2-3.c | 59 pthread_t thread_id; local 83 rc = pthread_create(&thread_id, &attr, thread, NULL); 89 rc = pthread_join(thread_id, NULL);
|
2-4.c | 59 pthread_t thread_id; local 84 rc = pthread_create(&thread_id, &attr, thread, NULL); 90 rc = pthread_join(thread_id, NULL);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/ |
1-3.c | 56 pthread_t thread_id; local 86 rc = pthread_create(&thread_id, &attr, thread, NULL); 92 rc = pthread_join(thread_id, NULL);
|