| /openbsd-src/gnu/usr.bin/perl/dist/threads/ |
| H A D | threads.xs | 58 # include <thread.h> 74 #define PERL_ITHR_THREAD_EXIT_ONLY 8 /* exit() only exits current thread */ 82 struct _ithread *next; /* Next thread in the list */ 83 struct _ithread *prev; /* Prev thread in the list */ 84 PerlInterpreter *interp; /* The thread's interpreter */ 85 UV tid; /* Thread's module's thread id */ 93 DWORD thr; /* OS's idea if thread id */ 96 pthread_t thr; /* OS's handle for the thread */ 99 SV *err; /* Error from abnormally terminated thread */ 110 /* Used by Perl interpreter for thread contex 204 S_ithread_set(pTHX_ ithread * thread) S_ithread_set() argument 229 S_ithread_clear(pTHX_ ithread * thread) S_ithread_clear() argument 298 S_ithread_free(pTHX_ ithread * thread) S_ithread_free() argument 361 S_ithread_count_inc(pTHX_ ithread * thread) S_ithread_count_inc() argument 414 ithread *thread = (ithread *)mg->mg_ptr; ithread_mg_get() local 423 ithread *thread = (ithread *)mg->mg_ptr; ithread_mg_free() local 519 S_jmpenv_run(pTHX_ int action,ithread * thread,int * len_p,int * exit_app_p,int * exit_code_p) S_jmpenv_run() argument 562 ithread *thread = (ithread *)arg; S_ithread_run() local 720 S_ithread_to_SV(pTHX_ SV * obj,ithread * thread,char * classname,bool inc) S_ithread_to_SV() argument 771 ithread *thread; global() local 1077 ithread *thread; global() variable 1213 ithread *thread; global() variable 1279 ithread *thread; global() variable 1581 ithread *thread; global() variable 1664 ithread *thread = INT2PTR(ithread *, SvIV(SvRV(ST(0)))); global() variable [all...] |
| /openbsd-src/regress/sys/kern/signal/sigpthread/ |
| H A D | Makefile | 13 REGRESS_TARGETS += run-block-thread-3-unblock-$t 14 run-block-thread-3-unblock-$t: 25 REGRESS_TARGETS += run-block-thread-3-sleep-main-unblock-$t 26 run-block-thread-3-sleep-main-unblock-$t: 38 REGRESS_TARGETS += run-block-thread-3-unblock-$t-sleep-thread 39 run-block-thread-3-sleep-thread-unblock-$t: 51 REGRESS_TARGETS += run-block-thread-3-sleep-unblock-unblock-$t 52 run-block-thread-3-sleep-unblock-unblock-$t: 64 REGRESS_TARGETS += run-block-thread-3-kill-$t-unblock-$t 65 run-block-thread-3-kill-$t-unblock-$t: [all …]
|
| /openbsd-src/lib/librthread/ |
| H A D | rthread.c | 93 pthread_t thread = v; in _rthread_start() local 96 retval = thread->fn(thread->arg); in _rthread_start() 154 _rthread_free(pthread_t thread) in _rthread_free() argument 157 TAILQ_INSERT_TAIL(&_thread_gc_list, thread, waiting); in _rthread_free() 162 _thread_release(pthread_t thread) in _thread_release() argument 165 LIST_REMOVE(thread, threads); in _thread_release() 168 _spinlock(&thread->flags_lock); in _thread_release() 169 if (thread->flags & THREAD_DETACHED) { in _thread_release() 170 _spinunlock(&thread->flags_lock); in _thread_release() 171 _rthread_free(thread); in _thread_release() [all …]
|
| H A D | rthread_np.c | 43 pthread_set_name_np(pthread_t thread, const char *name) in pthread_set_name_np() argument 47 if (thread != pthread_self()) in pthread_set_name_np() 48 tid = thread->tib->tib_tid; in pthread_set_name_np() 53 pthread_get_name_np(pthread_t thread, char *name, size_t len) in pthread_get_name_np() argument 57 if (thread != pthread_self()) in pthread_get_name_np() 58 tid = thread->tib->tib_tid; in pthread_get_name_np() 80 pthread_stackseg_np(pthread_t thread, stack_t *sinfo) in pthread_stackseg_np() argument 82 if (thread->stack) { in pthread_stackseg_np() 84 sinfo->ss_sp = thread->stack->base; in pthread_stackseg_np() 86 sinfo->ss_sp = (char *)thread->stack->base + in pthread_stackseg_np() [all …]
|
| H A D | rthread_stack.c | 24 _rthread_alloc_stack(pthread_t thread) in _rthread_alloc_stack() argument 34 if (thread->attr.stack_addr == NULL && in _rthread_alloc_stack() 35 thread->attr.stack_size == RTHREAD_STACK_SIZE_DEF && in _rthread_alloc_stack() 36 thread->attr.guard_size == _thread_pagesize) { in _rthread_alloc_stack() 53 if (thread->attr.stack_size > _thread_pagesize) in _rthread_alloc_stack() 55 else if (thread->attr.stack_size == _thread_pagesize) in _rthread_alloc_stack() 62 if (thread->attr.stack_addr != NULL) { in _rthread_alloc_stack() 63 stack->base = base = thread->attr.stack_addr; in _rthread_alloc_stack() 64 stack->len = thread->attr.stack_size; in _rthread_alloc_stack() 68 stack->sp = base + thread->attr.stack_size - (_STACKALIGNBYTES+1) - rnd; in _rthread_alloc_stack() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Support/ |
| H A D | thread.h | 38 class thread { 72 thread() : Thread(native_handle_type()) {} in thread() function 73 thread(thread &&Other) noexcept in thread() function 77 explicit thread(Function &&f, Args &&...args) in thread() function 78 : thread(DefaultStackSize, f, args...) {} in thread() 81 explicit thread(std::optional<unsigned> StackSizeInBytes, Function &&f, 83 thread(const thread &) = delete; 85 ~thread() { in ~thread() 90 thread &operator=(thread &&Other) noexcept { 104 return std::thread::hardware_concurrency(); in hardware_concurrency() [all …]
|
| /openbsd-src/gnu/gcc/gcc/cp/ |
| H A D | cfns.gperf | 47 #fclose -- POSIX thread cancellation point 50 #fflush -- POSIX thread cancellation point 51 #fgetc -- POSIX thread cancellation point 52 #fgetpos -- POSIX thread cancellation point 53 #fgets -- POSIX thread cancellation point 54 #fgetwc -- POSIX thread cancellation point 55 #fgetws -- POSIX thread cancellation point 58 #fopen -- POSIX thread cancellation point 59 #fprintf -- POSIX thread cancellation point 60 #fputc -- POSIX thread cancellation point [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/cp/ |
| H A D | cfns.gperf | 46 #fclose -- POSIX thread cancellation point 49 #fflush -- POSIX thread cancellation point 50 #fgetc -- POSIX thread cancellation point 51 #fgetpos -- POSIX thread cancellation point 52 #fgets -- POSIX thread cancellation point 53 #fgetwc -- POSIX thread cancellation point 54 #fgetws -- POSIX thread cancellation point 57 #fopen -- POSIX thread cancellation point 58 #fprintf -- POSIX thread cancellation point 59 #fputc -- POSIX thread cancellation point [all …]
|
| /openbsd-src/gnu/usr.bin/perl/dist/threads/t/ |
| H A D | state.t | 108 ok($thr->is_running(), 'thread running'); 109 ok(threads->list(threads::running) == 1, 'thread running list'); 110 ok(! $thr->is_detached(), 'thread not detached'); 111 ok(! $thr->is_joinable(), 'thread not joinable'); 112 ok(threads->list(threads::joinable) == 0, 'thread joinable list'); 113 ok(threads->list(threads::all) == 1, 'thread list'); 116 ok(! $thr->is_running(), 'thread not running'); 117 ok(threads->list(threads::running) == 0, 'thread running list'); 118 ok(! $thr->is_detached(), 'thread not detached'); 119 ok($thr->is_joinable(), 'thread joinable'); [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/gdb/ |
| H A D | i386gnu-nat.c | 68 fetch_fpregs (struct proc *thread) in fetch_fpregs() argument 74 err = thread_get_state (thread->port, i386_FLOAT_STATE, in fetch_fpregs() 79 proc_string (thread)); in fetch_fpregs() 117 struct proc *thread; in gnu_fetch_registers() local 122 thread = inf_tid_to_thread (current_inferior, PIDGET (inferior_ptid)); in gnu_fetch_registers() 123 if (!thread) in gnu_fetch_registers() 132 state = proc_get_state (thread, 0); in gnu_fetch_registers() 136 proc_string (thread)); in gnu_fetch_registers() 144 proc_debug (thread, "fetching all register"); in gnu_fetch_registers() 148 thread->fetched_regs = ~0; in gnu_fetch_registers() [all …]
|
| H A D | gnu-nat.c | 163 struct proc *thread; /* The thread in question. */ member 337 else if (proc == inf->wait.thread && inf->wait.exc.reply && !force) in proc_abort() 614 if (proc == inf->wait.thread) in _proc_free() 648 inf->wait.thread = 0; in make_inf() 677 inf->wait.thread = 0; in inf_clear_wait() 919 struct proc *thread; in inf_update_suspends() local 932 for (thread = inf->threads; thread; thread = thread->next) in inf_update_suspends() 933 thread_running |= proc_update_sc (thread); in inf_update_suspends() 961 struct proc *thread = inf->threads; in inf_tid_to_thread() local 963 while (thread) in inf_tid_to_thread() [all …]
|
| /openbsd-src/gnu/llvm/lldb/examples/test/tmp/ |
| H A D | lldb_log-x86_64-clang-TestBreakpointCommand.BreakpointCommandTestCase.test_with_dsym.txt | 1 com.apple.main-thread /Volumes/data/lldb/svn/ToT/build/Debug/LLDB.framework/Versions/A/Resources/de… 9 com.apple.main-thread Host::LaunchProcess (launch_info) => pid=55237, path='/Volumes/data/lldb/svn/… 10 com.apple.main-thread ProcessGDBRemote::StartAsyncThread () 11 ….gdb-remote.async> ProcessGDBRemote::AsyncThread (arg = 0x7fabc1883400, pid = 0) thread starting... 13 com.apple.main-thread < 1> send packet: + 14 com.apple.main-thread history[1] tid=0x1307 < 1> send packet: + 15 com.apple.main-thread < 19> send packet: $QStartNoAckMode#b0 16 com.apple.main-thread < 1> read packet: + 17 com.apple.main-thread < 6> read packet: $OK#9a 18 com.apple.main-thread < 1> send packet: + [all …]
|
| H A D | lldb_log-x86_64-clang-TestBreakpointCommand.BreakpointCommandTestCase.test_with_dwarf.txt | 1 com.apple.main-thread /Volumes/data/lldb/svn/ToT/build/Debug/LLDB.framework/Versions/A/Resources/de… 9 com.apple.main-thread Host::LaunchProcess (launch_info) => pid=55287, path='/Volumes/data/lldb/svn/… 10 com.apple.main-thread ProcessGDBRemote::StartAsyncThread () 11 ….gdb-remote.async> ProcessGDBRemote::AsyncThread (arg = 0x7fabc0997600, pid = 0) thread starting... 13 com.apple.main-thread < 1> send packet: + 14 com.apple.main-thread history[1] tid=0x1307 < 1> send packet: + 15 com.apple.main-thread < 19> send packet: $QStartNoAckMode#b0 16 com.apple.main-thread < 1> read packet: + 17 com.apple.main-thread < 6> read packet: $OK#9a 18 com.apple.main-thread < 1> send packet: + [all …]
|
| /openbsd-src/gnu/llvm/libcxx/include/ |
| H A D | thread | 15 thread synopsis 20 class thread 26 thread() noexcept; 27 template <class F, class ...Args> explicit thread(F&& f, Args&&... args); 28 ~thread(); 30 thread(const thread&) = delete; 31 thread(thread&& t) noexcept; 33 thread& operator=(const thread&) = delete; 34 thread& operator=(thread&& t) noexcept; 36 void swap(thread& t) noexcept; [all …]
|
| /openbsd-src/regress/lib/libpthread/cancel_wait/ |
| H A D | cancel_wait.c | 54 pthread_t thread; in main() local 68 CHECKr(pthread_create(&thread, NULL, wait_thread, NULL)); in main() 70 CHECKr(pthread_cancel(thread)); in main() 71 CHECKr(pthread_join(thread, &ret)); in main() 76 CHECKr(pthread_create(&thread, NULL, waitpid_thread, NULL)); in main() 78 CHECKr(pthread_cancel(thread)); in main() 79 CHECKr(pthread_join(thread, &ret)); in main() 84 CHECKr(pthread_create(&thread, NULL, wait3_thread, NULL)); in main() 86 CHECKr(pthread_cancel(thread)); in main() 87 CHECKr(pthread_join(thread, &ret)); in main() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Process/Linux/ |
| H A D | NativeProcessLinux.cpp | 321 NativeThreadLinux &thread = AddThread(tid, /*resume*/ false); in NativeProcessLinux() local 322 ThreadWasCreated(thread); in NativeProcessLinux() 425 void NativeProcessLinux::MonitorCallback(NativeThreadLinux &thread, in MonitorCallback() argument 431 const bool is_main_thread = (thread.GetID() == GetID()); in MonitorCallback() 438 status, thread.GetID(), is_main_thread ? "is" : "is not", in MonitorCallback() 442 StopTrackingThread(thread); in MonitorCallback() 449 const auto info_err = GetSignalInfo(thread.GetID(), &info); in MonitorCallback() 455 MonitorSIGTRAP(info, thread); in MonitorCallback() 457 MonitorSignal(info, thread); in MonitorCallback() 473 GetID(), thread.GetID()); in MonitorCallback() [all …]
|
| /openbsd-src/gnu/llvm/lldb/docs/use/ |
| H A D | formatting.rst | 10 thread stopped and where: 14 * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 21 (lldb) thread backtrace 22 * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 31 (lldb) settings set thread-stop-format STRING 34 The first of these is an abbreviated thread output, that just contains data 35 about the thread, and not the stop frame. It will always get used in situations 39 There is another thread format used for commands like thread list where the 40 thread information isn't followed by frame info. In that case, it is convenient 41 to have frame zero information in the thread output. That format is set by: [all …]
|
| /openbsd-src/gnu/llvm/lldb/utils/lui/ |
| H A D | lldbutil.py | 303 for thread in process: 312 if thread.GetStopReason() == reason or reason is None: 313 list.append(thread) 672 for thread in stopped_threads: 674 break_id = thread.GetStopReasonDataAtIndex(0) 676 threads.append(thread) 690 def get_caller_symbol(thread): argument 694 depth = thread.GetNumFrames() 697 caller = thread.GetFrameAtIndex(1).GetSymbol() 704 def get_function_names(thread): argument [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Target/ |
| H A D | ThreadPlanStepInstruction.cpp | 23 ThreadPlanStepInstruction::ThreadPlanStepInstruction(Thread &thread, in ThreadPlanStepInstruction() argument 29 "Step over single instruction", thread, report_stop_vote, in ThreadPlanStepInstruction() 40 Thread &thread = GetThread(); in SetUpState() local 41 m_instruction_addr = thread.GetRegisterContext()->GetPC(0); in SetUpState() 42 StackFrameSP start_frame_sp(thread.GetStackFrameAtIndex(0)); in SetUpState() 48 StackFrameSP parent_frame_sp = thread.GetStackFrameAtIndex(1); in SetUpState() 100 Thread &thread = GetThread(); in IsPlanStale() local 101 StackID cur_frame_id = thread.GetStackFrameAtIndex(0)->GetStackID(); in IsPlanStale() 104 uint64_t pc = thread.GetRegisterContext()->GetPC(0); in IsPlanStale() 112 return (thread.GetRegisterContext()->GetPC(0) != m_instruction_addr); in IsPlanStale() [all …]
|
| /openbsd-src/gnu/llvm/lldb/examples/python/ |
| H A D | performance.py | 79 def ThreadStopped(self, thread): argument 88 def ThreadStopped(self, thread): argument 89 if thread.GetStopReason() == lldb.eStopReasonPlanComplete: 92 self.callback(self.callback_owner, thread) 94 self.callback(thread) 142 def ThreadStopped(self, thread): argument 143 if thread.GetStopReason() == lldb.eStopReasonBreakpoint: 145 if bp.GetID() == thread.GetStopReasonDataAtIndex(0): 148 self.callback(self.callback_owner, thread) 150 self.callback(thread) [all …]
|
| /openbsd-src/regress/lib/libpthread/cancel2/ |
| H A D | cancel2.c | 81 pthread_t thread; in main() local 88 CHECKr(pthread_create(&thread, NULL, select_thread, pipe_fd)); in main() 90 CHECKr(pthread_cancel(thread)); in main() 91 CHECKr(pthread_join(thread, &result)); in main() 95 CHECKr(pthread_create(&thread, NULL, pselect_thread, pipe_fd)); in main() 97 CHECKr(pthread_cancel(thread)); in main() 98 CHECKr(pthread_join(thread, &result)); in main() 102 CHECKr(pthread_create(&thread, NULL, poll_thread, pipe_fd)); in main() 104 CHECKr(pthread_cancel(thread)); in main() 105 CHECKr(pthread_join(thread, &result)); in main() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/API/ |
| H A D | SBHostOS.cpp | 104 llvm::Expected<HostThread> thread = in ThreadCreate() local 108 if (!thread) { in ThreadCreate() 110 error_ptr->SetError(Status(thread.takeError())); in ThreadCreate() 112 llvm::consumeError(thread.takeError()); in ThreadCreate() 116 return thread->Release(); in ThreadCreate() 121 bool SBHostOS::ThreadCancel(lldb::thread_t thread, SBError *error_ptr) { in ThreadCancel() argument 122 LLDB_INSTRUMENT_VA(thread, error_ptr); in ThreadCancel() 125 HostThread host_thread(thread); in ThreadCancel() 133 bool SBHostOS::ThreadDetach(lldb::thread_t thread, SBError *error_ptr) { in ThreadDetach() argument 134 LLDB_INSTRUMENT_VA(thread, error_ptr); in ThreadDetach() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Commands/ |
| H A D | CommandObjectThreadUtil.cpp | 43 Thread *thread = m_exe_ctx.GetThreadPtr(); in DoExecute() local 44 if (!thread || !HandleOneThread(thread->GetID(), result)) in DoExecute() 77 ThreadSP thread = in DoExecute() local 80 if (!thread) { in DoExecute() 86 tids.push_back(thread->GetID()); in DoExecute() 114 ThreadSP thread = process->GetThreadList().FindThreadByIndexID( in DoExecute() local 116 if (!HandleOneThread(thread->GetID(), result)) { in DoExecute() 140 Thread *thread = process->GetThreadList().FindThreadByID(tid).get(); in BucketThread() local 141 if (thread == nullptr) { in BucketThread() 148 const uint32_t frame_count = thread->GetStackFrameCount(); in BucketThread() [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/hwasan/ |
| H A D | hwasan_fuchsia.cpp | 63 static void FinishThreadInitialization(Thread *thread); 118 Thread *thread = static_cast<Thread *>(hook); in ThreadCreateHook() local 126 hwasanThreadList().ReleaseThread(thread); in ThreadCreateHook() 134 Thread *thread = static_cast<Thread *>(hook); in ThreadStartHook() local 135 FinishThreadInitialization(thread); in ThreadStartHook() 136 thread->EnsureRandomStateInited(); in ThreadStartHook() 143 static void FinishThreadInitialization(Thread *thread) { in FinishThreadInitialization() argument 144 CHECK_NE(thread, nullptr); in FinishThreadInitialization() 148 uptr stack_buffer_start = reinterpret_cast<uptr>(thread) - stack_buffer_size; in FinishThreadInitialization() 149 thread->InitStackRingBuffer(stack_buffer_start, stack_buffer_size); in FinishThreadInitialization() [all …]
|
| /openbsd-src/gnu/llvm/lldb/include/lldb/Symbol/ |
| H A D | FuncUnwinders.h | 38 lldb::UnwindPlanSP GetUnwindPlanAtCallSite(Target &target, Thread &thread); 41 lldb_private::Thread &thread); 44 lldb_private::Thread &thread); 47 GetUnwindPlanArchitectureDefault(lldb_private::Thread &thread); 50 GetUnwindPlanArchitectureDefaultAtFunctionEntry(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); [all …]
|