/openbsd-current/gnu/llvm/llvm/include/llvm/Support/ |
H A D | thread.h | 1 //===-- llvm/Support/thread.h - Wrapper for <thread> ------------*- C++ -*-===// 9 // This header is a wrapper for <thread> that works around problems with the 10 // MSVC headers when exceptions are disabled. It also provides llvm::thread, 11 // which is either a typedef of std::thread or a replacement that calls the 30 #include <thread> 36 /// LLVM thread following std::thread interface with added constructor to 38 class thread { class in namespace:llvm 72 thread() function in class:llvm::thread 77 explicit thread(Function &&f, Args &&...args) function in class:llvm::thread 125 thread::thread(std::optional<unsigned> StackSizeInBytes, Function &&f, function in class:llvm::thread [all...] |
/openbsd-current/gnu/usr.bin/perl/dist/threads/ |
H A D | threads.xs | 70 # include <thread.h> 86 #define PERL_ITHR_THREAD_EXIT_ONLY 8 /* exit() only exits current thread */ 94 struct _ithread *next; /* Next thread in the list */ 95 struct _ithread *prev; /* Prev thread in the list */ 96 PerlInterpreter *interp; /* The thread's interpreter */ 97 UV tid; /* Thread's module's thread id */ 105 DWORD thr; /* OS's idea if thread id */ 108 pthread_t thr; /* OS's handle for the thread */ 111 SV *err; /* Error from abnormally terminated thread */ 122 /* Used by Perl interpreter for thread contex [all...] |
/openbsd-current/lib/librthread/ |
H A D | rthread_getcpuclockid.c | 25 pthread_getcpuclockid(pthread_t thread, clockid_t *clock_id) argument 28 thread->tib->tib_tid);
|
H A D | rthread.c | 93 pthread_t thread = v; local 96 retval = thread->fn(thread->arg); 108 * 1) pthread_cancel() has been called on this thread, 154 _rthread_free(pthread_t thread) argument 157 TAILQ_INSERT_TAIL(&_thread_gc_list, thread, waiting); 162 _thread_release(pthread_t thread) argument 165 LIST_REMOVE(thread, threads); 168 _spinlock(&thread->flags_lock); 169 if (thread 182 pthread_t thread; local 196 pthread_t thread = pthread_self(); local 250 pthread_t thread; local 280 pthread_join(pthread_t thread, void **retval) argument 324 pthread_detach(pthread_t thread) argument 349 pthread_t thread; local 416 pthread_kill(pthread_t thread, int sig) argument 428 pthread_cancel(pthread_t thread) argument 548 pthread_t thread; local [all...] |
H A D | rthread_np.c | 43 pthread_set_name_np(pthread_t thread, const char *name) argument 47 if (thread != pthread_self()) 48 tid = thread->tib->tib_tid; 53 pthread_get_name_np(pthread_t thread, char *name, size_t len) argument 57 if (thread != pthread_self()) 58 tid = thread->tib->tib_tid; 71 * Return stack info from the given thread. Based upon the solaris 80 pthread_stackseg_np(pthread_t thread, stack_t *sinfo) argument 82 if (thread->stack) { 84 sinfo->ss_sp = thread [all...] |
H A D | rthread_sched.c | 32 pthread_getschedparam(pthread_t thread, int *policy, argument 38 *policy = thread->attr.sched_policy; 40 *param = thread->attr.sched_param; 46 pthread_setschedparam(pthread_t thread, int policy, argument 56 thread->attr.sched_policy = policy; 58 thread->attr.sched_param = *param; 121 pthread_getprio(pthread_t thread) argument 126 return (thread->attr.sched_param.sched_priority); 130 pthread_setprio(pthread_t thread, int priority) argument 135 thread [all...] |
/openbsd-current/gnu/llvm/lldb/source/Target/ |
H A D | InstrumentationRuntimeStopInfo.cpp | 19 Thread &thread, std::string description, 21 : StopInfo(thread, 0) { 32 Thread &thread, std::string description, 35 new InstrumentationRuntimeStopInfo(thread, description, additionalData)); 18 InstrumentationRuntimeStopInfo( Thread &thread, std::string description, StructuredData::ObjectSP additional_data) argument 31 CreateStopReasonWithInstrumentationData( Thread &thread, std::string description, StructuredData::ObjectSP additionalData) argument
|
H A D | ThreadPlanStepInstruction.cpp | 23 ThreadPlanStepInstruction::ThreadPlanStepInstruction(Thread &thread, argument 29 "Step over single instruction", thread, report_stop_vote, 40 Thread &thread = GetThread(); local 41 m_instruction_addr = thread.GetRegisterContext()->GetPC(0); 42 StackFrameSP start_frame_sp(thread.GetStackFrameAtIndex(0)); 48 StackFrameSP parent_frame_sp = thread.GetStackFrameAtIndex(1); 84 // Since we read the instruction we're stepping over from the thread, this 100 Thread &thread = GetThread(); local 101 StackID cur_frame_id = thread.GetStackFrameAtIndex(0)->GetStackID(); 104 uint64_t pc = thread 129 Thread &thread = GetThread(); local [all...] |
/openbsd-current/regress/lib/libpthread/cancel_wait/ |
H A D | cancel_wait.c | 5 * Check that a thread waiting in wait/waitpid/wait3/wait4 can be 54 pthread_t thread; local 68 CHECKr(pthread_create(&thread, NULL, wait_thread, NULL)); 70 CHECKr(pthread_cancel(thread)); 71 CHECKr(pthread_join(thread, &ret)); 76 CHECKr(pthread_create(&thread, NULL, waitpid_thread, NULL)); 78 CHECKr(pthread_cancel(thread)); 79 CHECKr(pthread_join(thread, &ret)); 84 CHECKr(pthread_create(&thread, NULL, wait3_thread, NULL)); 86 CHECKr(pthread_cancel(thread)); [all...] |
/openbsd-current/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: 19 # unblock thread $t 25 REGRESS_TARGETS += run-block-thread-3-sleep-main-unblock-$t 26 run-block-thread-3-sleep-main-unblock-$t: 30 # sleep in main thread, signal should be received while suspended 32 # unblock thread $t 38 REGRESS_TARGETS += run-block-thread-3-unblock-$t-sleep-thread 39 run-block-thread [all...] |
/openbsd-current/gnu/usr.bin/perl/ext/PerlIO-encoding/t/ |
H A D | threads.t | 27 my $thread = threads->create(sub { pass 'in thread'; return 1 }); 28 skip 'test thread could not be spawned' => 3 unless $thread; 29 $thread->join; 31 is $@, '', 'thread did not croak'; 32 is $ret, 1, 'thread returned the right value';
|
/openbsd-current/regress/lib/libpthread/pthread_create/ |
H A D | pthread_create.c | 51 printf("New thread was passed arg address %p\n", arg); 52 printf("New thread stack at %p\n", &i); 60 pthread_t thread; local 63 printf("Original thread stack at %p\n", &i); 64 CHECKr(pthread_create(&thread, NULL, new_thread, 66 CHECKr(pthread_join(thread, NULL));
|
/openbsd-current/gnu/usr.bin/binutils/gdb/testsuite/gdb.mi/ |
H A D | mi-pthreads.exp | 20 # This file tests MI thread commands. 46 # MI will return a list of thread ids: 48 # -thread-list-ids 49 # ^done,thread-ids=[thread-id="1",thread-id="2",...],number-of-threads="N" 51 mi_gdb_test "-thread-list-ids" \ 52 {\^done,thread-ids={(thread-id="[0-9]+"(,)?)+},number-of-threads="[0-9]+"} \ 61 if {![regexp {thread [all...] |
H A D | mi2-pthreads.exp | 20 # This file tests MI thread commands. 46 # MI will return a list of thread ids: 48 # -thread-list-ids 49 # ^done,thread-ids=[thread-id="1",thread-id="2",...],number-of-threads="N" 51 mi_gdb_test "-thread-list-ids" \ 52 {\^done,thread-ids={(thread-id="[0-9]+"(,)?)+},number-of-threads="[0-9]+"} \ 61 if {![regexp {thread [all...] |
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/ |
H A D | 20001101.c | 15 void bogus (insn, thread, delay_list) 17 rtx thread; 26 thread = new_thread; 30 if (new_thread != thread )
|
/openbsd-current/gnu/llvm/lldb/tools/lldb-vscode/ |
H A D | OutputRedirector.h | 12 #include <thread>
|
/openbsd-current/gnu/usr.bin/binutils/gdb/ |
H A D | i386gnu-nat.c | 69 fetch_fpregs (struct proc *thread) 75 err = thread_get_state (thread->port, i386_FLOAT_STATE, 80 proc_string (thread)); 118 struct proc *thread; 123 thread = inf_tid_to_thread (current_inferior, PIDGET (inferior_ptid)); 124 if (!thread) 125 error ("Can't fetch registers from thread %d: No such thread", 133 state = proc_get_state (thread, 0); 137 proc_string (thread)); 68 fetch_fpregs(struct proc *thread) argument 117 struct proc *thread; local 172 store_fpregs(struct proc *thread, int regno) argument 206 struct proc *thread; local [all...] |
/openbsd-current/regress/lib/libpthread/preemption/ |
H A D | preemption.c | 58 pthread_t thread; local 60 CHECKr(pthread_create(&thread, NULL, new_thread, NULL));
|
/openbsd-current/regress/misc/sse2/foo/ |
H A D | foo.c | 31 pthread_t thread; local 34 pthread_create(&thread, NULL, foo, NULL);
|
/openbsd-current/gnu/llvm/lldb/source/Plugins/Process/Windows/Common/ |
H A D | NativeRegisterContextWindows.cpp | 22 NativeThreadProtocol &thread, RegisterInfoInterface *reg_info_interface_p) 23 : NativeRegisterContextRegisterInfo(thread, reg_info_interface_p) {} 21 NativeRegisterContextWindows( NativeThreadProtocol &thread, RegisterInfoInterface *reg_info_interface_p) argument
|
/openbsd-current/gnu/llvm/lldb/source/API/ |
H A D | SBHostOS.cpp | 104 llvm::Expected<HostThread> thread = local 108 if (!thread) { 110 error_ptr->SetError(Status(thread.takeError())); 112 llvm::consumeError(thread.takeError()); 116 return thread->Release(); 121 bool SBHostOS::ThreadCancel(lldb::thread_t thread, SBError *error_ptr) { argument 122 LLDB_INSTRUMENT_VA(thread, error_ptr); 125 HostThread host_thread(thread); 133 bool SBHostOS::ThreadDetach(lldb::thread_t thread, SBError *error_ptr) { argument 134 LLDB_INSTRUMENT_VA(thread, error_pt 150 ThreadJoin(lldb::thread_t thread, lldb::thread_result_t *result, SBError *error_ptr) argument [all...] |
/openbsd-current/regress/lib/libpthread/sleep/ |
H A D | sleep.c | 68 pthread_t thread[2]; local 69 int count = sizeof thread/sizeof thread[0]; 77 CHECKr(pthread_create(&thread[i], NULL, new_thread, 81 CHECKr(pthread_join(thread[i], NULL));
|
/openbsd-current/regress/lib/libpthread/preemption_float/ |
H A D | preemption_float.c | 36 for each thread. Different threads doing floating point operations 103 pthread_t thread[2]; local 106 CHECKr(pthread_create (&thread[0], NULL, trig_loop, NULL)); 107 CHECKr(pthread_create (&thread[1], NULL, log_loop, NULL)); 108 CHECKr(pthread_join(thread[0], (void **) &x)); 109 CHECKr(pthread_join(thread[1], (void **) &y)); 119 pthread_t thread; local 122 /* single active thread, trig test */ 124 CHECKr(pthread_create (&thread, NULL, trig_loop, NULL)); 125 CHECKr(pthread_join(thread, (voi [all...] |
/openbsd-current/lib/libc/thread/ |
H A D | rthread.c | 40 .name = "Original thread", 76 pthread_t thread = &_initial_thread; local 83 tib->tib_thread = thread; 84 thread->tib = tib; 86 thread->donesem.lock = _SPINLOCK_UNLOCKED; 126 pthread_t thread = pthread_self(); local 128 tib = thread->tib; 141 thread->retval = retval; 143 for (clfn = thread->cleanup_fns; clfn; ) { 150 _rthread_tls_destructors(thread); [all...] |
/openbsd-current/regress/lib/libpthread/cancel2/ |
H A D | cancel2.c | 5 * Check that a thread waiting on a select or poll without timeout can be 81 pthread_t thread; local 88 CHECKr(pthread_create(&thread, NULL, select_thread, pipe_fd)); 90 CHECKr(pthread_cancel(thread)); 91 CHECKr(pthread_join(thread, &result)); 95 CHECKr(pthread_create(&thread, NULL, pselect_thread, pipe_fd)); 97 CHECKr(pthread_cancel(thread)); 98 CHECKr(pthread_join(thread, &result)); 102 CHECKr(pthread_create(&thread, NULL, poll_thread, pipe_fd)); 104 CHECKr(pthread_cancel(thread)); [all...] |