Searched defs:thr (Results 1 - 25 of 79) sorted by relevance

1234

/external/compiler-rt/test/asan/TestCases/Windows/
H A Dbeginthreadex.cc15 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 Dthread_simple.cc15 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 Dthread_stack_array_left_oob.cc19 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); local
24 if (thr == 0) return 0;
26 WaitForSingleObject(thr, INFINITE);
H A Dthread_stack_array_right_oob.cc19 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); local
24 if (thr == 0) return 0;
26 WaitForSingleObject(thr, INFINITE);
H A Dthread_stress.cc16 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 Dthread_suspended.cc15 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 Ddll_thread_stack_array_left_oob.cc26 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 Dthread_stack_reuse.cc22 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 Dmalloc_stack.cc6 void *thr(void *a) { function
16 pthread_create(&th, 0, thr, p);
H A Drace_stress.cc9 void *thr(void *arg) { function
18 pthread_create(&th[i], 0, thr, 0);
H A Dbarrier.cc18 void *thr(void *p) { function
35 pthread_create(&th[i], 0, thr, (void*)(long)i);
H A Dcond_destruction.cc16 void *thr(void *p) { function
30 pthread_create(&th, 0, thr, 0);
H A Dcond_race.cc14 void *thr(void *p) { function
30 pthread_create(&th, 0, thr, c);
H A Dsignal_cond.cc36 pthread_t thr; local
37 pthread_create(&thr, 0, &my_thread, 0);
41 pthread_kill(thr, SIGUSR1);
47 pthread_join(thr, 0);
H A Dsignal_sync.cc17 static void* thr(void *p) { function
27 pthread_create(&th[i], 0, thr, 0);
H A Dsignal_thread.cc20 static void* thr(void *p) { function
43 pthread_create(&th, 0, thr, 0);
H A Dsunrpc.cc8 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 Dmutex_robust.cc10 void *thr(void *p) { function
21 pthread_create(&th, 0, thr, 0);
H A Dmutex_robust2.cc11 void *thr(void *p) { function
23 pthread_create(&th, 0, thr, 0);
/external/valgrind/drd/tests/
H A Dpth_create_glibc_2_0.c28 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 Dsignal_during_stop_the_world.cc19 static void *thr(void *arg);
56 static void *thr(void *arg) { function
/external/compiler-rt/test/asan/TestCases/Posix/
H A Dcurrent_allocated_bytes.cc29 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 Dhg_lock_n_thread.c48 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 Dbar_trivial.c38 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 Dreach_thread_register.c46 pthread_t thr; local
47 pthread_create(&thr, NULL, &helper, &bar);
51 pthread_detach(thr);

Completed in 336 milliseconds

1234