/external/compiler-rt/test/asan/TestCases/Windows/ |
H A D | beginthreadex.cc | 15 HANDLE thr = (HANDLE)_beginthreadex(NULL, 0, thread_proc, NULL, 0, NULL); local 16 if (thr == 0) 18 if (WAIT_OBJECT_0 != WaitForSingleObject(thr, INFINITE)) 20 CloseHandle(thr);
|
H A D | thread_simple.cc | 15 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); local 16 if (thr == 0) 18 if (WAIT_OBJECT_0 != WaitForSingleObject(thr, INFINITE)) 21 GetExitCodeThread(thr, &exitcode); 24 CloseHandle(thr);
|
H A D | thread_stack_array_left_oob.cc | 19 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); local 24 if (thr == 0) return 0; 26 WaitForSingleObject(thr, INFINITE);
|
H A D | thread_stack_array_right_oob.cc | 19 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); local 24 if (thr == 0) return 0; 26 WaitForSingleObject(thr, INFINITE);
|
H A D | thread_stress.cc | 16 HANDLE thr[NUM_THREADS]; local 18 thr[i] = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); 19 if (thr[i] == 0) 23 if (WAIT_OBJECT_0 != WaitForSingleObject(thr[i], INFINITE)) 25 CloseHandle(thr[i]);
|
H A D | thread_suspended.cc | 15 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, CREATE_SUSPENDED, NULL); local 16 ResumeThread(thr); 17 if (thr == 0) 19 if (WAIT_OBJECT_0 != WaitForSingleObject(thr, INFINITE)) 22 GetExitCodeThread(thr, &exitcode); 25 CloseHandle(thr);
|
H A D | dll_thread_stack_array_left_oob.cc | 26 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); local 31 if (thr == 0) 33 if (WAIT_OBJECT_0 != WaitForSingleObject(thr, INFINITE))
|
H A D | thread_stack_reuse.cc | 22 HANDLE thr = NULL; local 24 thr = CreateThread(NULL, 0, thread_proc_1, NULL, 0, NULL); 25 if (thr == 0) 27 if (WAIT_OBJECT_0 != WaitForSingleObject(thr, INFINITE)) 30 thr = CreateThread(NULL, 0, thread_proc_2, NULL, 0, NULL); 31 if (thr == 0) 33 if (WAIT_OBJECT_0 != WaitForSingleObject(thr, INFINITE)) 35 CloseHandle(thr);
|
/external/compiler-rt/test/tsan/ |
H A D | malloc_stack.cc | 6 void *thr(void *a) { function 16 pthread_create(&th, 0, thr, p);
|
H A D | race_stress.cc | 9 void *thr(void *arg) { function 18 pthread_create(&th[i], 0, thr, 0);
|
H A D | barrier.cc | 18 void *thr(void *p) { function 35 pthread_create(&th[i], 0, thr, (void*)(long)i);
|
H A D | cond_destruction.cc | 16 void *thr(void *p) { function 30 pthread_create(&th, 0, thr, 0);
|
H A D | cond_race.cc | 14 void *thr(void *p) { function 30 pthread_create(&th, 0, thr, c);
|
H A D | signal_cond.cc | 36 pthread_t thr; local 37 pthread_create(&thr, 0, &my_thread, 0); 41 pthread_kill(thr, SIGUSR1); 47 pthread_join(thr, 0);
|
H A D | signal_sync.cc | 17 static void* thr(void *p) { function 27 pthread_create(&th[i], 0, thr, 0);
|
H A D | signal_thread.cc | 20 static void* thr(void *p) { function 43 pthread_create(&th, 0, thr, 0);
|
H A D | sunrpc.cc | 8 void *thr(void *p) { function 18 pthread_create(&th[0], 0, thr, 0); 19 pthread_create(&th[1], 0, thr, 0);
|
/external/compiler-rt/test/tsan/Linux/ |
H A D | mutex_robust.cc | 10 void *thr(void *p) { function 21 pthread_create(&th, 0, thr, 0);
|
H A D | mutex_robust2.cc | 11 void *thr(void *p) { function 23 pthread_create(&th, 0, thr, 0);
|
/external/valgrind/drd/tests/ |
H A D | pth_create_glibc_2_0.c | 28 pthread_t thr; local 30 result = (*pthread_create_glibc_2_0)(&thr, 0, thread_func, 0); 36 pthread_join(thr, 0);
|
/external/compiler-rt/test/asan/TestCases/Linux/ |
H A D | signal_during_stop_the_world.cc | 19 static void *thr(void *arg); 56 static void *thr(void *arg) { function
|
/external/compiler-rt/test/asan/TestCases/Posix/ |
H A D | current_allocated_bytes.cc | 29 pthread_t thr[4]; local 32 pthread_create(&thr[j], 0, (j < 2) ? allocate : check_stats, 0)); 35 assert(0 == pthread_join(thr[j], 0));
|
/external/valgrind/helgrind/ |
H A D | hg_lock_n_thread.c | 48 inline Bool HG_(is_sane_Thread) ( Thread* thr ) { 49 return thr != NULL && thr->magic == Thread_MAGIC; 54 Thread* thr; local 57 while (VG_(nextIterBag)( bag, (UWord*)&thr, &count )) { 59 if (!HG_(is_sane_Thread)(thr)) return False;
|
/external/valgrind/helgrind/tests/ |
H A D | bar_trivial.c | 38 pthread_t thr[NTHR]; local 44 r = pthread_create(&thr[i], NULL, child_fn, (void*)i); 49 r = pthread_join(thr[i], NULL);
|
/external/valgrind/memcheck/tests/ |
H A D | reach_thread_register.c | 46 pthread_t thr; local 47 pthread_create(&thr, NULL, &helper, &bar); 51 pthread_detach(thr);
|