Home
last modified time | relevance | path

Searched refs:Thread (Results 1 – 25 of 620) sorted by relevance

12345678910>>...25

/llvm-project-15.0.7/llvm/include/llvm/Support/
H A Dthread.h79 : Thread(std::exchange(Other.Thread, native_handle_type())) {} in thread()
98 Thread = std::exchange(Other.Thread, native_handle_type());
115 void swap(llvm::thread &Other) noexcept { std::swap(Thread, Other.Thread); } in swap()
118 native_handle_type Thread;
149 llvm_thread_join_impl(Thread); in join()
150 Thread = native_handle_type(); in join()
155 Thread = native_handle_type(); in detach()
173 : Thread(std::exchange(Other.Thread, std::thread())) {}
188 Thread = std::exchange(Other.Thread, std::thread());
205 void swap(llvm::thread &Other) noexcept { std::swap(Thread, Other.Thread); }
[all …]
/llvm-project-15.0.7/compiler-rt/lib/hwasan/
H A Dhwasan_thread_list.h88 Thread *CreateCurrentThread(const Thread::InitState *state = nullptr) {
89 Thread *t = nullptr;
112 void DontNeedThread(Thread *t) { in DontNeedThread()
119 for (Thread *&t2 : live_list_) in RemoveThreadFromLiveList()
130 void ReleaseThread(Thread *t) { in ReleaseThread()
154 for (Thread *t : live_list_) cb(t); in VisitAllLiveThreads()
157 void AddThreadStats(Thread *t) { in AddThreadStats()
163 void RemoveThreadStats(Thread *t) { in RemoveThreadStats()
177 Thread *AllocThread() { in AllocThread()
181 Thread *t = (Thread *)(free_space_ + ring_buffer_size_); in AllocThread()
[all …]
H A Dhwasan_fuchsia.cpp59 struct Thread::InitState {
63 static void FinishThreadInitialization(Thread *thread);
80 const Thread::InitState state = { in InitThreads()
97 const Thread::InitState state = { in BeforeThreadCreateHook()
106 void Thread::InitStackAndTls(const InitState *state) { in InitStackAndTls()
118 Thread *thread = static_cast<Thread *>(hook); in ThreadCreateHook()
134 Thread *thread = static_cast<Thread *>(hook); in ThreadStartHook()
143 static void FinishThreadInitialization(Thread *thread) { in FinishThreadInitialization()
153 Thread *thread = static_cast<Thread *>(hook); in ThreadExitHook()
H A Dhwasan_thread.cpp28 void Thread::InitRandomState() { in InitRandomState()
38 void Thread::Init(uptr stack_buffer_start, uptr stack_buffer_size, in Init()
59 void Thread::InitStackRingBuffer(uptr stack_buffer_start, in InitStackRingBuffer()
82 sizeof(Thread), heap_allocations_->SizeInBytes(), in InitStackRingBuffer()
89 void Thread::ClearShadowForThreadStackAndTLS() { in ClearShadowForThreadStackAndTLS()
96 void Thread::Destroy() { in Destroy()
112 void Thread::Print(const char *Prefix) { in Print()
126 tag_t Thread::GenerateRandomTag(uptr num_bits) { in GenerateRandomTag()
/llvm-project-15.0.7/lldb/source/Target/
H A DThread.cpp170 const Thread::ThreadEventData *
218 Thread::Thread(Process &process, lldb::tid_t tid, bool use_invalid_index_id) in Thread() function in Thread
240 Thread::~Thread() { in ~Thread()
249 void Thread::DestroyThread() { in DestroyThread()
429 void Thread::ResetStopInfo() { in ResetStopInfo()
605 void Thread::WillStop() { in WillStop()
619 void Thread::SetupForResume() { in SetupForResume()
1083 void Thread::PopPlan() { in PopPlan()
1092 void Thread::DiscardPlan() { in DiscardPlan()
1855 Unwind &Thread::GetUnwinder() { in GetUnwinder()
[all …]
H A DThreadPlanPython.cpp29 ThreadPlanPython::ThreadPlanPython(Thread &thread, const char *class_name, in ThreadPlanPython()
74 Log *log = GetLog(LLDBLog::Thread); in ShouldStop()
93 Log *log = GetLog(LLDBLog::Thread); in IsPlanStale()
112 Log *log = GetLog(LLDBLog::Thread); in DoPlanExplainsStop()
131 Log *log = GetLog(LLDBLog::Thread); in MischiefManaged()
146 Log *log = GetLog(LLDBLog::Thread); in GetPlanRunState()
168 Log *log = GetLog(LLDBLog::Thread); in WillStop()
H A DThreadPlan.cpp23 ThreadPlan::ThreadPlan(ThreadPlanKind kind, const char *name, Thread &thread, in ThreadPlan()
42 Thread &ThreadPlan::GetThread() { in GetThread()
182 ThreadPlanNull::ThreadPlanNull(Thread &thread) in ThreadPlanNull()
199 Log *log = GetLog(LLDBLog::Thread); in ValidatePlan()
215 Log *log = GetLog(LLDBLog::Thread); in ShouldStop()
231 Log *log = GetLog(LLDBLog::Thread); in WillStop()
247 Log *log = GetLog(LLDBLog::Thread); in DoPlanExplainsStop()
265 Log *log = GetLog(LLDBLog::Thread); in MischiefManaged()
282 Log *log = GetLog(LLDBLog::Thread); in GetPlanRunState()
H A DStopInfo.cpp31 StopInfo::StopInfo(Thread &thread, uint64_t value) in StopInfo()
87 StopInfoBreakpoint(Thread &thread, break_id_t break_id) in StopInfoBreakpoint()
134 bool IsValidForOperatingSystemThread(Thread &thread) override { in IsValidForOperatingSystemThread()
675 StopInfoWatchpoint(Thread &thread, break_id_t watch_id, in StopInfoWatchpoint()
1051 StopInfoException(Thread &thread, const char *description) in StopInfoException()
1241 StopInfoVForkDone(Thread &thread) : StopInfo(thread, 0) {} in StopInfoVForkDone()
1290 StopInfoSP StopInfo::CreateStopReasonToTrace(Thread &thread) { in CreateStopReasonToTrace()
1311 StopInfoSP StopInfo::CreateStopReasonWithExec(Thread &thread) { in CreateStopReasonWithExec()
1315 StopInfoSP StopInfo::CreateStopReasonFork(Thread &thread, in CreateStopReasonFork()
1322 StopInfoSP StopInfo::CreateStopReasonVFork(Thread &thread, in CreateStopReasonVFork()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/tsan/dd/
H A Ddd_rtl.h26 struct Thread { struct
34 Thread *thr; argument
36 Callback(Thread *thr);
57 void ThreadInit(Thread *thr);
58 void ThreadDestroy(Thread *thr);
60 void MutexBeforeLock(Thread *thr, uptr m, bool writelock);
61 void MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock);
62 void MutexBeforeUnlock(Thread *thr, uptr m, bool writelock);
63 void MutexDestroy(Thread *thr, uptr m);
H A Ddd_rtl.cpp21 static u32 CurrentStackTrace(Thread *thr, uptr skip) { in CurrentStackTrace()
31 static void PrintStackTrace(Thread *thr, u32 stk) { in PrintStackTrace()
38 static void ReportDeadlock(Thread *thr, DDReport *rep) { in ReportDeadlock()
57 Callback::Callback(Thread *thr) in Callback()
99 void ThreadInit(Thread *thr) { in ThreadInit()
106 void ThreadDestroy(Thread *thr) { in ThreadDestroy()
111 void MutexBeforeLock(Thread *thr, uptr m, bool writelock) { in MutexBeforeLock()
124 void MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock) { in MutexAfterLock()
137 void MutexBeforeUnlock(Thread *thr, uptr m, bool writelock) { in MutexBeforeUnlock()
148 void MutexDestroy(Thread *thr, uptr m) { in MutexDestroy()
/llvm-project-15.0.7/lldb/include/lldb/Symbol/
H A DFuncUnwinders.h38 lldb::UnwindPlanSP GetUnwindPlanAtCallSite(Target &target, Thread &thread);
41 lldb_private::Thread &thread);
44 lldb_private::Thread &thread);
47 GetUnwindPlanArchitectureDefault(lldb_private::Thread &thread);
77 lldb::UnwindPlanSP GetAssemblyUnwindPlan(Target &target, Thread &thread);
82 Thread &thread);
87 Thread &thread);
92 Thread &thread);
98 lldb::UnwindPlanSP GetSymbolFileUnwindPlan(Thread &thread);
100 lldb::UnwindPlanSP GetArchDefaultUnwindPlan(Thread &thread);
[all …]
/llvm-project-15.0.7/lldb/include/lldb/Target/
H A DStopInfo.h26 StopInfo(Thread &thread, uint64_t value);
104 CreateStopReasonWithBreakpointSiteID(Thread &thread,
110 Thread &thread, lldb::break_id_t break_id, bool should_stop);
113 Thread &thread, lldb::break_id_t watch_id,
117 CreateStopReasonWithSignal(Thread &thread, int signo,
120 static lldb::StopInfoSP CreateStopReasonToTrace(Thread &thread);
130 static lldb::StopInfoSP CreateStopReasonWithExec(Thread &thread);
135 static lldb::StopInfoSP CreateStopReasonFork(Thread &thread,
139 static lldb::StopInfoSP CreateStopReasonVFork(Thread &thread,
143 static lldb::StopInfoSP CreateStopReasonVForkDone(Thread &thread);
[all …]
H A DThreadPlanTracer.h31 ThreadPlanTracer(Thread &thread, lldb::StreamSP &stream_sp);
32 ThreadPlanTracer(Thread &thread);
53 Thread &GetThread();
68 Thread *m_thread;
73 ThreadPlanAssemblyTracer(Thread &thread, lldb::StreamSP &stream_sp);
74 ThreadPlanAssemblyTracer(Thread &thread);
H A DThreadSpec.h70 bool TIDMatches(Thread &thread) const;
79 bool IndexMatches(Thread &thread) const;
90 bool NameMatches(Thread &thread) const;
101 bool QueueNameMatches(Thread &thread) const;
103 bool ThreadPassesBasicTests(Thread &thread) const;
H A DABI.h45 virtual bool PrepareTrivialCall(lldb_private::Thread &thread, lldb::addr_t sp,
60 virtual bool PrepareTrivialCall(lldb_private::Thread &thread, lldb::addr_t sp,
66 virtual bool GetArgumentValues(Thread &thread, ValueList &values) const = 0;
68 lldb::ValueObjectSP GetReturnValueObject(Thread &thread, CompilerType &type,
72 lldb::ValueObjectSP GetReturnValueObject(Thread &thread, llvm::Type &type,
84 GetReturnValueObjectImpl(Thread &thread, CompilerType &ast_type) const = 0;
88 GetReturnValueObjectImpl(Thread &thread, llvm::Type &ir_type) const;
/llvm-project-15.0.7/lldb/source/Plugins/Process/scripted/
H A DScriptedThread.cpp126 error, LLDBLog::Thread); in CreateRegisterContextForFrame()
134 LLDBLog::Thread); in CreateRegisterContextForFrame()
142 LLDBLog::Thread); in CreateRegisterContextForFrame()
157 error, LLDBLog::Thread); in LoadArtificialStackFrames()
168 error, LLDBLog::Thread); in LoadArtificialStackFrames()
190 LLDBLog::Thread); in LoadArtificialStackFrames()
224 LLDBLog::Thread); in CalculateStopInfo()
233 LLDBLog::Thread); in CalculateStopInfo()
240 LLDBLog::Thread); in CalculateStopInfo()
274 error, LLDBLog::Thread); in CalculateStopInfo()
[all …]
/llvm-project-15.0.7/llvm/unittests/Support/
H A DThreading.cpp66 llvm::thread Thread(ThreadFunc); in TEST() local
67 Thread.detach(); in TEST()
75 llvm::thread Thread( in TEST() local
78 Thread.join(); in TEST()
84 llvm::thread Thread([] { in TEST() local
89 Thread.join(); in TEST()
/llvm-project-15.0.7/lldb/source/Plugins/ABI/Hexagon/
H A DABISysV_hexagon.h22 bool PrepareTrivialCall(lldb_private::Thread &thread, lldb::addr_t sp,
29 PrepareTrivialCall(lldb_private::Thread &thread, lldb::addr_t sp,
34 bool GetArgumentValues(lldb_private::Thread &thread,
42 GetReturnValueObjectImpl(lldb_private::Thread &thread,
46 lldb::ValueObjectSP GetReturnValueObjectImpl(lldb_private::Thread &thread,
92 GetReturnValueObjectSimple(lldb_private::Thread &thread,
/llvm-project-15.0.7/lldb/source/Plugins/ABI/ARC/
H A DABISysV_arc.h25 bool PrepareTrivialCall(lldb_private::Thread &thread, lldb::addr_t sp,
32 PrepareTrivialCall(lldb_private::Thread &thread, lldb::addr_t sp,
37 bool GetArgumentValues(lldb_private::Thread &thread,
45 GetReturnValueObjectImpl(lldb_private::Thread &thread,
49 lldb::ValueObjectSP GetReturnValueObjectImpl(lldb_private::Thread &thread,
93 GetReturnValueObjectSimple(lldb_private::Thread &thread,
/llvm-project-15.0.7/libc/src/__support/threads/
H A Dthread.h100 struct Thread { struct
103 constexpr Thread() : attrib(nullptr) {} in Thread() argument
104 constexpr Thread(ThreadAttributes *attr) : attrib(attr) {} in Thread() function
167 bool operator==(const Thread &other) const;
170 extern thread_local Thread self;
/llvm-project-15.0.7/libc/src/__support/threads/linux/
H A Dthread.cpp70 struct Thread;
141 int Thread::run(ThreadStyle style, ThreadRunner runner, void *arg, void *stack, in run()
233 int Thread::join(ThreadReturnValue &retval) { in join()
246 int Thread::detach() { in detach()
263 void Thread::wait() { in wait()
277 bool Thread::operator==(const Thread &thread) const { in operator ==()
/llvm-project-15.0.7/libcxx/include/
H A D__threading_support77 // Thread id
84 // Thread
109 // Thread id
112 // Thread
142 // Thread ID
145 // Thread
207 // Thread id
214 // Thread
355 // Thread id
368 // Thread
[all …]
/llvm-project-15.0.7/libc/src/threads/
H A Dthrd_equal.cpp17 static_assert(sizeof(thrd_t) == sizeof(__llvm_libc::Thread),
21 auto *lhs_internal = reinterpret_cast<Thread *>(&lhs);
22 auto *rhs_internal = reinterpret_cast<Thread *>(&rhs);
/llvm-project-15.0.7/libc/src/pthread/
H A Dpthread_equal.cpp18 static_assert(sizeof(pthread_t) == sizeof(__llvm_libc::Thread),
22 auto *lhs_internal = reinterpret_cast<Thread *>(&lhs);
23 auto *rhs_internal = reinterpret_cast<Thread *>(&rhs);
/llvm-project-15.0.7/compiler-rt/test/tsan/
H A Dstatic_init7.cpp23 void *Thread(void *x) { in Thread() function
32 pthread_create(&t[0], 0, Thread, 0); in main()
33 pthread_create(&t[1], 0, Thread, 0); in main()

12345678910>>...25