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

123

/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 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.cc7 void *thr(void *a) { function
16 pthread_create(&th, 0, thr, p);
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);
H A Dbarrier.cc15 void *thr(void *p) { function
32 pthread_create(&th[i], 0, thr, (void*)(long)i);
H A Dcond_race.cc17 void *thr(void *p) { function
31 pthread_create(&th, 0, thr, c);
H A Dsunrpc.cc7 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 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/
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/main/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/main/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/main/memcheck/tests/
H A Dreach_thread_register.c46 pthread_t thr; local
47 pthread_create(&thr, NULL, &helper, &bar);
51 pthread_detach(thr);
H A Dthread_alloca.c7 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 Ddd_rtl.h36 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 Dtsan_mman_test.cc38 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 Dtsan_sync_test.cc20 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 Dtsan_stack_trace.cc61 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 Dtsan_test_util_linux.cc54 pthread_t thr; local
55 pthread_create(&thr, 0, BeforeInitThread, 0);
56 pthread_join(thr, 0);
/external/valgrind/main/none/tests/
H A Dthread-exits.c40 static void *thr(void *v) function
72 ret = pthread_create(&t, NULL, thr, NULL);

Completed in 4598 milliseconds

123