Home
last modified time | relevance | path

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

/llvm-project-15.0.7/lldb/test/API/tools/lldb-server/vCont-threads/
H A DTestPartialResume.py18 main_thread = self.parse_threadinfo_packets(
20 self.assertEqual(len(main_thread), 1)
33 self.assertIn(main_thread[0], all_threads)
36 all_subthreads = set(all_threads) - set(main_thread)
39 return (main_thread[0], list(all_subthreads))
41 def continue_and_get_threads_running(self, main_thread, vCont_req): argument
43 ["read packet: $vCont;c:{:x};{}#00".format(main_thread, vCont_req),
58 main_thread, all_subthreads_list = (
63 main_thread,
70 main_thread, all_subthreads_list = (
[all …]
/llvm-project-15.0.7/compiler-rt/test/tsan/
H A Datomic_race.cpp8 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()
H A Datomic_norace.cpp8 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()
H A Dsignal_block2.cpp14 pthread_t main_thread; variable
25 (void)pthread_kill(main_thread, SIGUSR1); in timer_handler()
38 main_thread = pthread_self(); in main()
/llvm-project-15.0.7/lldb/test/API/macosx/safe-to-func-call/
H A DTestSafeFuncCalls.py35 main_thread = lldb.SBThread()
40 main_thread = t
45 main_thread.IsValid() and select_thread.IsValid(),
48 self.assertTrue(main_thread.SafeToCallFunctions(),
/llvm-project-15.0.7/lldb/test/API/macosx/thread-names/
H A DTestInterruptThreadNames.py43 main_thread = lldb.SBThread()
49 main_thread = t
55 self.check_expected_threads_present(main_thread, second_thread, third_thread)
130 def check_expected_threads_present(self, main_thread, second_thread, third_thread): argument
132 main_thread.IsValid() and second_thread.IsValid() and third_thread.IsValid(),
/llvm-project-15.0.7/lldb/test/API/functionalities/breakpoint/breakpoint_on_lambda_capture/
H A DTestBreakOnLambdaCapture.py21 (target, process, main_thread, _) = lldbutil.run_to_source_breakpoint(self,
30 val_obj = main_thread.frame[0].EvaluateExpression("true")
51 if thread.id == main_thread.id:
H A Dmain.cpp27 std::thread main_thread(background_thread, nullptr); in main() local
/llvm-project-15.0.7/lldb/test/API/functionalities/breakpoint/two_hits_one_actual/
H A DTestTwoHitsOneActual.py28 (target, process, main_thread, _) = lldbutil.run_to_source_breakpoint(self,
36 val_obj = main_thread.frame[0].EvaluateExpression("main_usec==1")
59 if thread.id == main_thread.id:
H A Dmain.cpp18 std::thread main_thread(background_thread, nullptr); // Set bkpt here to get started in main() local
/llvm-project-15.0.7/lldb/test/API/functionalities/thread/thread_specific_break/
H A DTestThreadSpecificBreakpoint.py45 (target, process, main_thread, main_breakpoint) = lldbutil.run_to_source_breakpoint(self,
60 setter_method(self, main_thread, thread_breakpoint)
76 main_thread.GetThreadID(),
/llvm-project-15.0.7/compiler-rt/lib/memprof/
H A Dmemprof_thread.cpp157 MemprofThread *main_thread = MemprofThread::Create( in CreateMainThread() local
160 SetCurrentThread(main_thread); in CreateMainThread()
161 main_thread->ThreadStart(internal_getpid(), in CreateMainThread()
163 return main_thread; in CreateMainThread()
H A Dmemprof_rtl.cpp203 MemprofThread *main_thread = CreateMainThread(); in MemprofInitInternal() local
204 CHECK_EQ(0, main_thread->tid()); in MemprofInitInternal()
/llvm-project-15.0.7/libc/test/integration/src/pthread/
H A Dpthread_equal_test.cpp40 auto main_thread = __llvm_libc::pthread_self(); in main() local
51 ASSERT_EQ(__llvm_libc::pthread_equal(th, main_thread), 0); in main()
/llvm-project-15.0.7/libc/test/integration/src/threads/
H A Dthrd_equal_test.cpp40 auto main_thread = __llvm_libc::thrd_current(); in main() local
52 ASSERT_EQ(__llvm_libc::thrd_equal(th, main_thread), 0); in main()
/llvm-project-15.0.7/compiler-rt/lib/asan/
H A Dasan_thread.cpp291 AsanThread *main_thread = AsanThread::Create( in CreateMainThread() local
294 SetCurrentThread(main_thread); in CreateMainThread()
295 main_thread->ThreadStart(internal_getpid()); in CreateMainThread()
296 return main_thread; in CreateMainThread()
H A Dasan_rtl.cpp471 AsanThread *main_thread = CreateMainThread(); in AsanInitInternal() local
472 CHECK_EQ(0, main_thread->tid()); in AsanInitInternal()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_thread_registry_test.cpp130 ThreadContextBase *main_thread = registry->GetThreadLocked(0); in TestRegistry() local
131 EXPECT_EQ(main_thread, registry->FindThreadContextLocked( in TestRegistry()
/llvm-project-15.0.7/compiler-rt/lib/msan/
H A Dmsan.cpp476 MsanThread *main_thread = MsanThread::Create(nullptr, nullptr); in __msan_init() local
477 SetCurrentThread(main_thread); in __msan_init()
478 main_thread->Init(); in __msan_init()
/llvm-project-15.0.7/lldb/test/API/python_api/process/
H A DTestProcessAPI.py401 (target, process, main_thread, main_breakpoint) = lldbutil.run_to_source_breakpoint(
433 frame = main_thread.GetFrameAtIndex(0)
/llvm-project-15.0.7/lldb/source/Plugins/Process/Windows/Common/
H A DProcessWindows.cpp688 ThreadSP main_thread = in OnDebuggerConnected() local
692 main_thread->SetID(id); in OnDebuggerConnected()
694 m_session_data->m_new_threads[id] = main_thread; in OnDebuggerConnected()
/llvm-project-15.0.7/lldb/source/Plugins/Process/Linux/
H A DNativeProcessLinux.cpp563 auto *main_thread = static_cast<NativeThreadLinux *>(m_threads[0].get()); in MonitorSIGTRAP() local
565 SetCurrentThreadID(main_thread->GetID()); in MonitorSIGTRAP()
566 main_thread->SetStoppedByExec(); in MonitorSIGTRAP()
569 ThreadWasCreated(*main_thread); in MonitorSIGTRAP()
575 StopRunningThreads(main_thread->GetID()); in MonitorSIGTRAP()
/llvm-project-15.0.7/compiler-rt/lib/dfsan/
H A Ddfsan.cpp1134 DFsanThread *main_thread = DFsanThread::Create(nullptr, nullptr); in DFsanInit() local
1135 SetCurrentThread(main_thread); in DFsanInit()
1136 main_thread->Init(); in DFsanInit()