/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 | 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 | 7 void *thr(void *a) { function 16 pthread_create(&th, 0, thr, p);
|
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);
|
H A D | barrier.cc | 15 void *thr(void *p) { function 32 pthread_create(&th[i], 0, thr, (void*)(long)i);
|
H A D | cond_race.cc | 17 void *thr(void *p) { function 31 pthread_create(&th, 0, thr, c);
|
H A D | sunrpc.cc | 7 void *thr(void *p) { function 17 pthread_create(&th[0], 0, thr, 0); 18 pthread_create(&th[1], 0, thr, 0);
|
/external/valgrind/main/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/ |
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/main/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/main/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/main/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);
|
H A D | thread_alloca.c | 7 Also, a high nr of threads in thr[] is needed to get 36 pthread_t thr[50]; local 39 for (i = 0; i < sizeof(thr) / sizeof(*thr); i++) { 40 err = pthread_create(&thr[i], NULL, nop, NULL); 47 for (i = 0; i < sizeof(thr) / sizeof(*thr); i++) 48 pthread_join(thr[i], NULL);
|
/external/compiler-rt/lib/tsan/dd/ |
H A D | dd_rtl.h | 36 Thread *thr; member in struct:__dsan::Callback 38 Callback(Thread *thr); 59 void ThreadInit(Thread *thr); 60 void ThreadDestroy(Thread *thr); 62 void MutexBeforeLock(Thread *thr, uptr m, bool writelock); 63 void MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock); 64 void MutexBeforeUnlock(Thread *thr, uptr m, bool writelock); 65 void MutexDestroy(Thread *thr, uptr m);
|
/external/compiler-rt/lib/tsan/tests/unit/ |
H A D | tsan_mman_test.cc | 38 ThreadState *thr = cur_thread(); local 40 char *p = (char*)user_alloc(thr, pc, 10); 42 char *p2 = (char*)user_alloc(thr, pc, 20); 47 user_free(thr, pc, p); 48 user_free(thr, pc, p2); 52 ThreadState *thr = cur_thread(); local 55 void *p = user_realloc(thr, pc, 0, 0); 61 void *p = user_realloc(thr, pc, 0, 100); 64 user_free(thr, pc, p); 67 void *p = user_alloc(thr, p 97 ThreadState *thr = cur_thread(); local 110 ThreadState *thr = cur_thread(); local [all...] |
H A D | tsan_sync_test.cc | 20 ThreadState *thr = cur_thread(); local 23 m->AllocBlock(thr, 0, (uptr)&block[0], 1 * sizeof(u64)); 27 EXPECT_EQ(mb->tid, thr->tid); 28 uptr sz = m->FreeBlock(thr, 0, (uptr)&block[0]); 35 ThreadState *thr = cur_thread(); local 38 m->AllocBlock(thr, 0, (uptr)&block[0], 1 * sizeof(u64)); 39 m->AllocBlock(thr, 0, (uptr)&block[1], 3 * sizeof(u64)); 44 m->FreeRange(thr, 0, (uptr)&block[0], 4 * sizeof(u64)); 52 ThreadState *thr = cur_thread(); local 55 m->AllocBlock(thr, 75 ThreadState *thr = cur_thread(); local 112 ThreadState *thr = cur_thread(); local [all...] |
/external/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_stack_trace.cc | 61 void StackTrace::ObtainCurrent(ThreadState *thr, uptr toppc) { argument 63 n_ = thr->shadow_stack_pos - thr->shadow_stack; 83 s_[i] = thr->shadow_stack[start + i];
|
/external/compiler-rt/lib/tsan/tests/rtl/ |
H A D | tsan_test_util_linux.cc | 54 pthread_t thr; local 55 pthread_create(&thr, 0, BeforeInitThread, 0); 56 pthread_join(thr, 0);
|
/external/valgrind/main/none/tests/ |
H A D | thread-exits.c | 40 static void *thr(void *v) function 72 ret = pthread_create(&t, NULL, thr, NULL);
|