Home
last modified time | relevance | path

Searched refs:main_thread (Results 1 – 20 of 20) sorted by relevance

/external/compiler-rt/test/tsan/
Datomic_race.cc8 void Test(int test, T *p, bool main_thread) { in Test() argument
11 if (main_thread) in Test()
16 if (main_thread) in Test()
21 if (main_thread) in Test()
26 if (main_thread) in Test()
Datomic_norace.cc8 void Test(int test, T *p, bool main_thread) { in Test() argument
11 if (main_thread) in Test()
16 if (main_thread) in Test()
21 if (main_thread) in Test()
26 if (main_thread) in Test()
/external/google-breakpad/src/client/mac/tests/
Dminidump_generator_test.cc124 MinidumpThread* main_thread = thread_list->GetThreadAtIndex(0); in TEST_F() local
125 ASSERT_TRUE(main_thread); in TEST_F()
126 MinidumpContext* context = main_thread->GetContext(); in TEST_F()
215 MinidumpThread* main_thread = thread_list->GetThreadAtIndex(0); in TEST_F() local
216 ASSERT_TRUE(main_thread); in TEST_F()
217 MinidumpContext* context = main_thread->GetContext(); in TEST_F()
305 MinidumpThread* main_thread = thread_list->GetThreadAtIndex(0); in TEST_F() local
306 ASSERT_TRUE(main_thread); in TEST_F()
307 MinidumpContext* context = main_thread->GetContext(); in TEST_F()
Dcrash_generation_server_test.cc264 MinidumpThread* main_thread = thread_list->GetThreadAtIndex(0); in TEST_F() local
265 ASSERT_TRUE(main_thread); in TEST_F()
266 MinidumpContext* context = main_thread->GetContext(); in TEST_F()
343 MinidumpThread* main_thread = thread_list->GetThreadAtIndex(0); in TEST_F() local
344 ASSERT_TRUE(main_thread); in TEST_F()
345 MinidumpContext* context = main_thread->GetContext(); in TEST_F()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/
D2-1.c23 pthread_t main_thread; in main() local
25 main_thread = pthread_self(); in main()
27 if (pthread_kill(main_thread, 0) != 0) { in main()
D7-1.c23 pthread_t main_thread; in main() local
25 main_thread = pthread_self(); in main()
27 if (EINVAL != pthread_kill(main_thread, -1)) { in main()
D3-1.c21 pthread_t main_thread; in main() local
23 main_thread = pthread_self(); in main()
25 if (pthread_kill(main_thread, 0) != 0) { in main()
/external/valgrind/none/tests/
Dpth_blockedsig.c11 static pthread_t main_thread; variable
23 if (pthread_kill (main_thread, SIGUSR1) != 0) in child_main()
49 main_thread = pthread_self (); in main()
/external/squashfs-tools/squashfs-tools/
Drestore.c49 extern pthread_t reader_thread, writer_thread, main_thread;
120 pthread_cancel(main_thread); in restore_thrd()
121 pthread_join(main_thread, NULL); in restore_thrd()
Dmksquashfs.c287 pthread_t reader_thread, writer_thread, main_thread; variable
4449 main_thread = pthread_self(); in initialise_threads()
/external/python/cpython2/Modules/
Dsignalmodule.c80 static long main_thread; variable
189 if (PyThread_get_thread_ident() != main_thread) { in signal_handler()
190 pth_raise(*(pth_t *) main_thread, sig_num); in signal_handler()
294 if (PyThread_get_thread_ident() != main_thread) { in signal_signal()
412 if (PyThread_get_thread_ident() != main_thread) { in signal_set_wakeup_fd()
578 main_thread = PyThread_get_thread_ident(); in initsignal()
901 if (PyThread_get_thread_ident() != main_thread) in PyErr_CheckSignals()
973 if (PyThread_get_thread_ident() != main_thread) in PyOS_InterruptOccurred()
1006 main_thread = PyThread_get_thread_ident(); in PyOS_AfterFork()
Dtimemodule.c56 static long main_thread; variable
878 main_thread = PyThread_get_thread_ident(); in inittime()
981 main_thread != PyThread_get_thread_ident())
/external/python/cpython2/Demo/pysvr/
Dpysvr.c45 static void main_thread(int);
87 main_thread(port); in main()
104 main_thread(int port) in main_thread() function
Dpysvr.py35 main_thread(port)
44 def main_thread(port): function
/external/linux-kselftest/tools/testing/selftests/mqueue/
Dmq_perf_tests.c80 pthread_t main_thread; variable
210 if (pthread_self() != main_thread) in sig_action_SIGUSR1()
223 if (pthread_self() != main_thread) in sig_action()
224 pthread_kill(main_thread, signum); in sig_action()
545 main_thread = pthread_self(); in main()
/external/compiler-rt/lib/asan/
Dasan_rtl.cc541 AsanThread *main_thread = AsanThread::Create( in AsanInitInternal() local
544 CHECK_EQ(0, main_thread->tid()); in AsanInitInternal()
545 SetCurrentThread(main_thread); in AsanInitInternal()
546 main_thread->ThreadStart(internal_getpid(), in AsanInitInternal()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_thread_registry_test.cc133 ThreadContextBase *main_thread = registry->GetThreadLocked(0); in TestRegistry() local
134 EXPECT_EQ(main_thread, registry->FindThreadContextLocked( in TestRegistry()
/external/ltp/testcases/realtime/func/matrix_mult/
Dmatrix_mult.c191 void main_thread(void) in main_thread() function
351 main_thread(); in main()
/external/compiler-rt/lib/msan/
Dmsan.cc419 MsanThread *main_thread = MsanThread::Create(nullptr, nullptr); in __msan_init() local
420 SetCurrentThread(main_thread); in __msan_init()
421 main_thread->ThreadStart(); in __msan_init()
/external/python/cpython2/Python/
Dceval.c240 static long main_thread = 0; variable
255 main_thread = PyThread_get_thread_ident(); in PyEval_InitThreads()
313 main_thread = PyThread_get_thread_ident(); in PyEval_ReInitThreads()
465 if (main_thread && PyThread_get_thread_ident() != main_thread) in Py_MakePendingCalls()