Home
last modified time | relevance | path

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

12345678910>>...25

/openbsd/gnu/llvm/llvm/include/llvm/Support/
H A Dthread.h74 : Thread(std::exchange(Other.Thread, native_handle_type())) {} in thread()
93 Thread = std::exchange(Other.Thread, native_handle_type());
110 void swap(llvm::thread &Other) noexcept { std::swap(Thread, Other.Thread); } in swap()
113 native_handle_type Thread;
142 llvm_thread_join_impl(Thread); in join()
143 Thread = native_handle_type(); in join()
148 Thread = native_handle_type(); in detach()
166 : Thread(std::exchange(Other.Thread, std::thread())) {}
181 Thread = std::exchange(Other.Thread, std::thread());
198 void swap(llvm::thread &Other) noexcept { std::swap(Thread, Other.Thread); }
[all …]
/openbsd/gnu/llvm/compiler-rt/lib/hwasan/
H A Dhwasan_thread_list.h88 Thread *CreateCurrentThread(const Thread::InitState *state = nullptr)
90 Thread *t = nullptr; in SANITIZER_EXCLUDES()
113 void DontNeedThread(Thread *t) { in DontNeedThread()
118 void RemoveThreadFromLiveList(Thread *t) in RemoveThreadFromLiveList()
121 for (Thread *&t2 : live_list_) in RemoveThreadFromLiveList()
156 for (Thread *t : live_list_) cb(t); in VisitAllLiveThreads()
162 for (Thread *t : live_list_) in FindThreadLocked()
196 Thread *AllocThread() { in AllocThread()
200 Thread *t = (Thread *)(free_space_ + ring_buffer_size_); in AllocThread()
213 InternalMmapVector<Thread *> free_list_
[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.cpp29 void Thread::InitRandomState() { in InitRandomState()
39 void Thread::Init(uptr stack_buffer_start, uptr stack_buffer_size, in Init()
61 void Thread::InitStackRingBuffer(uptr stack_buffer_start, in InitStackRingBuffer()
84 sizeof(Thread), heap_allocations_->SizeInBytes(), in InitStackRingBuffer()
91 void Thread::ClearShadowForThreadStackAndTLS() { in ClearShadowForThreadStackAndTLS()
98 void Thread::Destroy() { in Destroy()
114 void Thread::Print(const char *Prefix) { in Print()
128 tag_t Thread::GenerateRandomTag(uptr num_bits) { in GenerateRandomTag()
163 static __hwasan::Thread *GetThreadByOsIDLocked(tid_t os_id) { in GetThreadByOsIDLocked()
165 [os_id](__hwasan::Thread *t) { return t->os_id() == os_id; }); in GetThreadByOsIDLocked()
/openbsd/gnu/llvm/lldb/source/Target/
H A DThread.cpp171 const Thread::ThreadEventData *
219 Thread::Thread(Process &process, lldb::tid_t tid, bool use_invalid_index_id) in Thread() function in Thread
242 Thread::~Thread() { in ~Thread()
251 void Thread::DestroyThread() { in DestroyThread()
440 void Thread::ResetStopInfo() { in ResetStopInfo()
616 void Thread::WillStop() { in WillStop()
630 void Thread::SetupForResume() { in SetupForResume()
737 void Thread::DidResume() { in DidResume()
1106 void Thread::PopPlan() { in PopPlan()
1115 void Thread::DiscardPlan() { in DiscardPlan()
[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()
/openbsd/gnu/usr.bin/perl/lib/
H A DThread.t15 use Thread qw(:DEFAULT async yield);
33 my $self = Thread->self;
41 $thr = Thread->new(\&thr_sub);
43 isa_ok($thr, 'Thread');
48 my ($thr2) = Thread->list;
54 ok($thr->done(), 'Thread done');
61 isa_ok($thr, 'Thread');
72 return Thread->self->tid;
78 $thr = Thread->new(\&thr_wait);
79 isa_ok($thr, 'Thread');
[all …]
/openbsd/gnu/usr.bin/perl/dist/threads/t/
H A Dkill.t31 require Thread::Queue;
32 require Thread::Semaphore;
39 my $q = Thread::Queue->new();
64 ### Thread cancel ###
76 die("Thread killed\n");
79 # Thread sleeps until signalled
80 $q->enqueue(1, 'Thread sleeping');
102 ok(@errs && $errs[0] =~ /Thread killed/, 'Thread termination warning');
105 ### Thread suspend/resume ###
134 $q->enqueue(1, 'Thread done');
[all …]
H A Dlist.t47 ok(6, scalar @{[threads->list()]} == 0, 'Thread list empty again');
48 ok(7, threads->list() == 0, 'Thread list empty again');
58 ok(10, scalar(threads->list()) == 1, 'Thread count 1');
59 ok(11, threads->list() == 1, 'Thread count 1');
61 ok(12, $cnt == 1, 'Thread count 1');
63 ok(13, $thread == $thr_x, 'Thread in list');
65 ok(14, scalar @{[threads->list()]} == 0, 'Thread list empty');
66 ok(15, threads->list() == 0, 'Thread list empty');
H A Dfree2.t30 require Thread::Queue;
38 my $q = Thread::Queue->new();
77 $q->enqueue($tid, "Thread $tid started");
100 $q->enqueue($tid, "Thread $tid received signal from $other");
104 # Thread terminating
114 $q->enqueue($tid, "Thread $tid done");
125 $q->enqueue($tid, "Thread $tid signalling $other");
231 $q->enqueue(1, "Thread $tid getting return from thread $other");
255 $q->enqueue(1, "Thread $tid getting return from thread $other");
281 $q->enqueue(1, "Thread $tid getting return from thread $other");
[all …]
H A Dfree.t26 require Thread::Queue;
34 my $q = Thread::Queue->new();
68 $q->enqueue($tid, "Thread $tid started");
96 $q->enqueue($tid, "Thread $tid done");
125 $q->enqueue($tid, "Thread $tid started");
140 $q->enqueue($tid, "Thread $tid done");
171 $q->enqueue($tid, "Thread $tid started");
178 $q->enqueue($tid, "Thread $tid started");
186 $q->enqueue($tid, "Thread $tid done");
194 $q->enqueue($tid, "Thread $tid done");
/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/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 …]
/openbsd/gnu/llvm/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);
/openbsd/gnu/usr.bin/perl/dist/Thread-Queue/t/
H A D01_basic.t13 use Thread::Queue;
29 my $q = Thread::Queue->new(1..$nthreads);
36 ok($el >= 1, "Thread $id got $el");
39 ok(1, "Thread $id done");
60 $q = Thread::Queue->new();
70 is($el, shift(@items), "Thread got $el");
77 is($q->dequeue(), 'done', 'Thread reported done');
89 is(scalar(@el), $count, "Thread $id got @el");
115 is($el[0], shift(@items), "Thread got $el[0]");
117 is(scalar(@el), 1, 'Thread to exit');
[all …]
H A D09_ended.t18 use Thread::Queue;
30 my $q = Thread::Queue->new(@items);
31 my $r = Thread::Queue->new();
36 # Thread will loop until no more work is coming
46 pass("Thread $ii exiting");
73 my $q = Thread::Queue->new(@items);
74 my $r = Thread::Queue->new();
79 # Thread will loop until no more work is coming
89 pass("Thread $ii exiting");
116 my $q = Thread::Queue->new(@items);
[all …]
H A D06_insert.t13 use Thread::Queue;
25 my $q = Thread::Queue->new(1..10);
39 $q = Thread::Queue->new(1..10);
51 $q = Thread::Queue->new(1..10);
63 $q = Thread::Queue->new(1..10);
75 $q = Thread::Queue->new();
81 $q = Thread::Queue->new();
87 $q = Thread::Queue->new();
93 $q = Thread::Queue->new();
H A D10_timed.t13 use Thread::Queue;
27 my $q = Thread::Queue->new();
37 is($el[0], shift(@items), "Thread got $el[0]");
39 is(scalar(@el), 1, 'Thread to exit');
41 is($el[1], shift(@items), "Thread got $el[1]");
49 is($q->dequeue(), 'done', 'Thread reported done');
57 is($el[0], undef, "Thread got no items");
63 is($q->dequeue(), 'done', 'Thread reported done');
H A D07_lock.t13 use Thread::Queue;
14 use Thread::Semaphore;
28 my $q = Thread::Queue->new(1..10);
31 my $sm = Thread::Semaphore->new(0);
32 my $st = Thread::Semaphore->new(0);
42 is_deeply(\@x, [6,7], 'Thread dequeues under lock');
/openbsd/gnu/usr.bin/perl/dist/Thread-Semaphore/t/
H A D01_basic.t14 use Thread::Semaphore;
26 my $sm = Thread::Semaphore->new();
27 my $st = Thread::Semaphore->new(0);
37 is($token++, 1, 'Thread 1 got semaphore');
41 is($token, 5, 'Thread 1 done');
47 is($token++, 3, 'Thread 2 got semaphore');
51 is($token, 5, 'Thread 2 done');
H A D06_timed.t14 use Thread::Semaphore;
26 my $sm = Thread::Semaphore->new();
27 my $st = Thread::Semaphore->new(0);
37 is($token++, 1, 'Thread 1 got semaphore');
41 is($token, 5, 'Thread 1 done');
47 is($token++, 3, 'Thread 2 got semaphore');
51 ok(! $st->down_timed(1, 10), 'Thread 2 timed out');
/openbsd/gnu/llvm/lldb/source/Plugins/Process/scripted/
H A DScriptedThread.cpp128 error, LLDBLog::Thread); in CreateRegisterContextForFrame()
136 LLDBLog::Thread); in CreateRegisterContextForFrame()
144 LLDBLog::Thread); in CreateRegisterContextForFrame()
159 error, LLDBLog::Thread); in LoadArtificialStackFrames()
170 error, LLDBLog::Thread); in LoadArtificialStackFrames()
183 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()
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/opt/
H A Dptrmem2.C2 struct Thread struct
6 unsigned (Thread::*syscall_table)(); argument
9 void Thread::hook_ipc_vector() in hook_ipc_vector()
11 syscall_table = &Thread::sys_ipc_log; in hook_ipc_vector()

12345678910>>...25