| /dflybsd-src/lib/libthread_xu/thread/ |
| H A D | thr_list.c | 83 static void thr_destroy(pthread_t curthread, pthread_t thread); 152 pthread_t thread = NULL; in _thr_alloc() local 160 if ((thread = TAILQ_FIRST(&free_threadq)) != NULL) { in _thr_alloc() 161 TAILQ_REMOVE(&free_threadq, thread, tle); in _thr_alloc() 167 if (thread == NULL) { in _thr_alloc() 168 thread = __malloc(sizeof(struct __pthread_s)); in _thr_alloc() 169 if (thread == NULL) in _thr_alloc() 174 tcb = _tcb_ctor(thread, 0 /* not initial tls */); in _thr_alloc() 177 tcb = _tcb_ctor(thread, 1 /* initial tls */); in _thr_alloc() 180 memset(thread, 0, sizeof(*thread)); in _thr_alloc() [all …]
|
| H A D | thr_suspend_np.c | 43 _pthread_suspend_np(pthread_t thread) in _pthread_suspend_np() argument 49 if (thread == curthread) in _pthread_suspend_np() 53 else if ((ret = _thr_ref_add(curthread, thread, /*include dead*/0)) in _pthread_suspend_np() 56 THR_THREAD_LOCK(curthread, thread); in _pthread_suspend_np() 57 suspend_common(curthread, thread, 1); in _pthread_suspend_np() 59 THR_THREAD_UNLOCK(curthread, thread); in _pthread_suspend_np() 62 _thr_ref_delete(curthread, thread); in _pthread_suspend_np() 71 pthread_t thread; in _pthread_suspend_all_np() local 76 TAILQ_FOREACH(thread, &_thread_list, tle) { in _pthread_suspend_all_np() 77 if (thread != curthread) { in _pthread_suspend_all_np() [all …]
|
| H A D | thr_info.c | 45 _pthread_setname_np(pthread_t thread, const char *name) in _pthread_setname_np() argument 52 if (curthread == thread) { in _pthread_setname_np() 53 if (lwp_setname(thread->tid, name) == -1) in _pthread_setname_np() 56 if ((error = _thr_ref_add(curthread, thread, 0)) == 0) { in _pthread_setname_np() 57 THR_THREAD_LOCK(curthread, thread); in _pthread_setname_np() 58 if (thread->state != PS_DEAD) { in _pthread_setname_np() 59 if (lwp_setname(thread->tid, name) == -1) in _pthread_setname_np() 62 THR_THREAD_UNLOCK(curthread, thread); in _pthread_setname_np() 63 _thr_ref_delete(curthread, thread); in _pthread_setname_np() 72 _pthread_set_name_np(pthread_t thread, const char *name) in _pthread_set_name_np() argument [all …]
|
| H A D | thr_resume_np.c | 40 static void resume_common(pthread_t thread); 44 _pthread_resume_np(pthread_t thread) in _pthread_resume_np() argument 50 if ((ret = _thr_ref_add(curthread, thread, /*include dead*/0)) == 0) { in _pthread_resume_np() 52 THR_THREAD_LOCK(curthread, thread); in _pthread_resume_np() 53 resume_common(thread); in _pthread_resume_np() 54 THR_THREAD_UNLOCK(curthread, thread); in _pthread_resume_np() 55 _thr_ref_delete(curthread, thread); in _pthread_resume_np() 64 pthread_t thread; in _pthread_resume_all_np() local 69 TAILQ_FOREACH(thread, &_thread_list, tle) { in _pthread_resume_all_np() 70 if (thread != curthread) { in _pthread_resume_all_np() [all …]
|
| H A D | thr_affinity.c | 41 _pthread_getaffinity_np(pthread_t thread, size_t cpusetsize, in _pthread_getaffinity_np() argument 48 if (curthread == thread) { in _pthread_getaffinity_np() 50 if (lwp_getaffinity(0, thread->tid, &mask1) < 0) in _pthread_getaffinity_np() 54 if (_thr_ref_add(curthread, thread, 0) == 0) { in _pthread_getaffinity_np() 55 THR_THREAD_LOCK(curthread, thread); in _pthread_getaffinity_np() 56 if (thread->state != PS_DEAD) { in _pthread_getaffinity_np() 58 if (lwp_getaffinity(0, thread->tid, &mask1) < 0) in _pthread_getaffinity_np() 61 THR_THREAD_UNLOCK(curthread, thread); in _pthread_getaffinity_np() 62 _thr_ref_delete(curthread, thread); in _pthread_getaffinity_np() 79 _pthread_setaffinity_np(pthread_t thread, size_t cpusetsize, in _pthread_setaffinity_np() argument [all …]
|
| H A D | thr_init.c | 198 static void init_main_thread(pthread_t thread); 322 init_main_thread(pthread_t thread) in init_main_thread() argument 325 thread->tid = _thr_get_tid(); in init_main_thread() 326 thread->attr = _pthread_attr_default; in init_main_thread() 352 thread->attr.stackaddr_attr = _usrstack - _thr_stack_initial; in init_main_thread() 353 thread->attr.stacksize_attr = _thr_stack_initial; in init_main_thread() 354 thread->attr.guardsize_attr = _thr_guard_default; in init_main_thread() 355 thread->attr.flags |= THR_STACK_USER; in init_main_thread() 361 thread->magic = THR_MAGIC; in init_main_thread() 363 thread->cancelflags = PTHREAD_CANCEL_ENABLE | PTHREAD_CANCEL_DEFERRED; in init_main_thread() [all …]
|
| /dflybsd-src/contrib/lvm2/dist/daemons/dmeventd/ |
| H A D | dmeventd.c | 64 #define LINK_THREAD(thread) LINK(thread, &_thread_registry) argument 174 pthread_t thread; member 248 static void _free_thread_status(struct thread_status *thread) in _free_thread_status() argument 250 if (thread->current_task) in _free_thread_status() 251 dm_task_destroy(thread->current_task); in _free_thread_status() 252 dm_free(thread->device.uuid); in _free_thread_status() 253 dm_free(thread->device.name); in _free_thread_status() 254 dm_free(thread); in _free_thread_status() 461 struct thread_status *thread; in _lookup_thread_status() local 463 dm_list_iterate_items(thread, &_thread_registry) in _lookup_thread_status() [all …]
|
| /dflybsd-src/contrib/gcc-4.7/gcc/cp/ |
| H A D | cfns.gperf | 64 #fclose -- POSIX thread cancellation point 67 #fflush -- POSIX thread cancellation point 68 #fgetc -- POSIX thread cancellation point 69 #fgetpos -- POSIX thread cancellation point 70 #fgets -- POSIX thread cancellation point 71 #fgetwc -- POSIX thread cancellation point 72 #fgetws -- POSIX thread cancellation point 75 #fopen -- POSIX thread cancellation point 76 #fprintf -- POSIX thread cancellation point 77 #fputc -- POSIX thread cancellation point [all …]
|
| /dflybsd-src/contrib/gcc-4.7/libstdc++-v3/include/std/ |
| H A D | thread | 1 // <thread> -*- C++ -*- 25 /** @file include/thread 55 * Classes for thread support. 59 /// thread 60 class thread 67 /// thread::id 79 friend class thread; 80 friend class hash<thread::id>; 83 operator==(thread::id __x, thread::id __y) noexcept 87 operator<(thread::id __x, thread::id __y) noexcept [all …]
|
| /dflybsd-src/contrib/gcc-8.0/libstdc++-v3/include/std/ |
| H A D | thread | 1 // <thread> -*- C++ -*- 25 /** @file include/thread 57 * Classes for thread support. 61 /// thread 62 class thread 66 // invoked in the new thread of execution. 76 /// thread::id 88 friend class thread; 89 friend class hash<thread::id>; 92 operator==(thread::id __x, thread::id __y) noexcept; [all …]
|
| /dflybsd-src/contrib/gdb-7/gdb/ |
| H A D | continuations.c | 140 add_continuation (struct thread_info *thread, in add_continuation() argument 144 make_continuation (&thread->continuations, hook, args, free_arg); in add_continuation() 199 do_all_continuations_thread_callback (struct thread_info *thread, void *data) in do_all_continuations_thread_callback() argument 202 do_all_continuations_ptid (thread->ptid, &thread->continuations, err); in do_all_continuations_thread_callback() 209 do_all_continuations_thread (struct thread_info *thread, int err) in do_all_continuations_thread() argument 211 do_all_continuations_thread_callback (thread, &err); in do_all_continuations_thread() 225 discard_all_continuations_thread_callback (struct thread_info *thread, in discard_all_continuations_thread_callback() argument 228 discard_my_continuations (&thread->continuations); in discard_all_continuations_thread_callback() 235 discard_all_continuations_thread (struct thread_info *thread) in discard_all_continuations_thread() argument 237 discard_all_continuations_thread_callback (thread, NULL); in discard_all_continuations_thread() [all …]
|
| /dflybsd-src/contrib/zstd/lib/common/ |
| H A D | threading.c | 40 ZSTD_pthread_t* const thread = (ZSTD_pthread_t*) arg; in worker() local 41 thread->arg = thread->start_routine(thread->arg); in worker() 45 int ZSTD_pthread_create(ZSTD_pthread_t* thread, const void* unused, in ZSTD_pthread_create() argument 49 thread->arg = arg; in ZSTD_pthread_create() 50 thread->start_routine = start_routine; in ZSTD_pthread_create() 51 thread->handle = (HANDLE) _beginthreadex(NULL, 0, worker, thread, 0, NULL); in ZSTD_pthread_create() 53 if (!thread->handle) in ZSTD_pthread_create() 59 int ZSTD_pthread_join(ZSTD_pthread_t thread, void **value_ptr) in ZSTD_pthread_join() argument 63 if (!thread.handle) return 0; in ZSTD_pthread_join() 65 result = WaitForSingleObject(thread.handle, INFINITE); in ZSTD_pthread_join() [all …]
|
| /dflybsd-src/test/libpthread/ |
| H A D | mutex_d.exp | 25 Destruction of mutex locked by another thread - PASS 30 Destruction of mutex locked by another thread - PASS 35 Destruction of mutex locked by another thread - PASS 40 Destruction of mutex locked by another thread - PASS 45 Destruction of mutex locked by another thread - PASS 50 Destruction of mutex locked by another thread - PASS 55 Destruction of mutex locked by another thread - PASS 60 Destruction of mutex locked by another thread - PASS 65 Destruction of mutex locked by another thread - PASS 70 Destruction of mutex locked by another thread - PASS [all …]
|
| /dflybsd-src/sys/sys/ |
| H A D | thread.h | 39 struct thread; 63 typedef struct thread *thread_t; 65 typedef TAILQ_HEAD(lwkt_queue, thread) lwkt_queue; 170 struct thread *tr_owner; /* me */ 256 struct thread { struct 257 TAILQ_ENTRY(thread) td_threadq; 258 TAILQ_ENTRY(thread) td_allq; 259 TAILQ_ENTRY(thread) td_sleepq; 271 void (*td_preemptable)(struct thread *td, int critcount); argument 272 void (*td_release)(struct thread *td); argument [all …]
|
| H A D | kthread.h | 39 struct thread; 49 struct thread **global_threadpp; /* ptr to proc ptr save area */ 55 int suspend_kproc (struct thread *, int); 56 int resume_kproc (struct thread *); 59 int kthread_alloc (void (*)(void *), void *, struct thread **, 61 int kthread_create (void (*)(void *), void *, struct thread **, 63 int kthread_create_cpu (void (*)(void *), void *, struct thread **,
|
| H A D | sleepqueue.h | 76 struct thread; 97 void sleepq_setup_thread(struct thread *td); 98 void sleepq_teardown_thread(struct thread *td); 107 int sleepq_abort(struct thread *td, int intrval); 108 void sleepq_chains_remove_matching(bool (*matches)(struct thread *)); 109 void sleepq_remove(struct thread *td, const void *wchan); 111 bool (*matches)(struct thread *), int pri); 112 void sleepq_remove_nested(struct thread *td);
|
| /dflybsd-src/contrib/gdb-7/gdb/python/ |
| H A D | py-threadevent.c | 30 PyObject *thread = NULL; in get_event_thread() local 33 thread = (PyObject *) find_thread_object (inferior_ptid); in get_event_thread() 35 thread = Py_None; in get_event_thread() 37 if (!thread) in get_event_thread() 43 return thread; in get_event_thread() 49 PyObject *thread = NULL; in create_thread_event_object() local 56 thread = get_event_thread (); in create_thread_event_object() 57 if (!thread) in create_thread_event_object() 62 thread) < 0) in create_thread_event_object() 72 GDBPY_NEW_EVENT_TYPE (thread,
|
| H A D | py-infthread.c | 31 if (!Thread->thread) \ 50 thread_obj->thread = tp; in create_thread_object() 73 name = thread_obj->thread->name; in thpy_get_name() 75 name = target_thread_name (thread_obj->thread); in thpy_get_name() 89 if (! thread_obj->thread) in thpy_set_name() 116 xfree (thread_obj->thread->name); in thpy_set_name() 117 thread_obj->thread->name = name; in thpy_set_name() 129 return PyLong_FromLong (thread_obj->thread->num); in thpy_get_num() 148 pid = ptid_get_pid (thread_obj->thread->ptid); in thpy_get_ptid() 149 lwp = ptid_get_lwp (thread_obj->thread->ptid); in thpy_get_ptid() [all …]
|
| /dflybsd-src/sys/vfs/nfs/ |
| H A D | nfs.h | 361 struct thread *r_td; /* Thread that did I/O system call */ 513 struct thread *nfsd_td; /* thread ptr */ 644 struct thread *td, 672 struct thread *td); 675 void nfs_startio(struct vnode *vp, struct bio *, struct thread *); 676 int nfs_doio(struct vnode *vp, struct bio *, struct thread *); 681 int nfs_sigintr (struct nfsmount *, struct nfsreq *, struct thread *); 690 caddr_t *, struct vnode **, struct thread *, int, int); 724 struct thread *, struct mbuf **); 725 int nfs_fsinfo (struct nfsmount *, struct vnode *, struct thread *p); [all …]
|
| /dflybsd-src/contrib/gcc-8.0/libstdc++-v3/src/c++11/ |
| H A D | thread.cc | 79 thread::_State_ptr __t{ static_cast<thread::_State*>(__p) }; in execute_native_thread_routine() 88 thread::_Impl_base* __t = static_cast<thread::_Impl_base*>(__p); in execute_native_thread_routine_compat() 89 thread::__shared_base_type __local; in execute_native_thread_routine_compat() 102 thread::_State::~_State() = default; 105 thread::join() in join() 119 thread::detach() in detach() 133 thread::_M_start_thread(_State_ptr state, void (*)()) in _M_start_thread() 145 thread::_M_start_thread(__shared_base_type __b) in _M_start_thread() 159 thread::_M_start_thread(__shared_base_type __b, void (*)()) in _M_start_thread() 175 thread::hardware_concurrency() noexcept in hardware_concurrency()
|
| /dflybsd-src/test/interbench/ |
| H A D | interbench.c | 97 void emulate_none(struct thread *th); 98 void emulate_audio(struct thread *th); 99 void emulate_video(struct thread *th); 100 void emulate_x(struct thread *th); 101 void emulate_game(struct thread *th); 102 void emulate_burn(struct thread *th); 103 void emulate_write(struct thread *th); 104 void emulate_read(struct thread *th); 105 void emulate_ring(struct thread *th); 106 void emulate_compile(struct thread *th); [all …]
|
| /dflybsd-src/sys/netinet6/ |
| H A D | in6_pcb.h | 84 struct thread; 101 int in6_pcballoc (struct socket *, struct inpcbinfo *, struct thread *); 102 int in6_pcbbind (struct inpcb *, struct sockaddr *, struct thread *); 103 int in6_pcbconnect (struct inpcb *, struct sockaddr *, struct thread *); 107 struct in6_addr **, struct thread *); 127 struct in6_addr *, int *, struct thread *); 129 int in6_pcbsetlport (struct in6_addr *, struct inpcb *, struct thread *);
|
| /dflybsd-src/sys/netproto/smb/ |
| H A D | smb_tran.h | 58 int (*tr_create)(struct smb_vc *vcp, struct thread *td); 59 int (*tr_done)(struct smb_vc *vcp, struct thread *td); 60 int (*tr_bind)(struct smb_vc *vcp, struct sockaddr *sap, struct thread *td); 61 int (*tr_connect)(struct smb_vc *vcp, struct sockaddr *sap, struct thread *td); 62 int (*tr_disconnect)(struct smb_vc *vcp, struct thread *td); 63 int (*tr_send)(struct smb_vc *vcp, struct mbuf *m0, struct thread *td); 64 int (*tr_recv)(struct smb_vc *vcp, struct mbuf **mpp, struct thread *td); 71 int (*tr_poll)(struct smb_vc *vcp, struct thread *td);
|
| /dflybsd-src/contrib/gcc-4.7/libstdc++-v3/src/c++11/ |
| H A D | thread.cc | 68 thread::_Impl_base* __t = static_cast<thread::_Impl_base*>(__p); in execute_native_thread_routine() 69 thread::__shared_base_type __local; in execute_native_thread_routine() 92 thread::join() in join() 106 thread::detach() in detach() 120 thread::_M_start_thread(__shared_base_type __b) in _M_start_thread() 136 thread::hardware_concurrency() noexcept in hardware_concurrency()
|
| H A D | compatibility-thread-c++0x.cc | 92 template void call_once(once_flag&, void (thread::*&&)(), reference_wrapper<thread>&&); 93 …d_simple_helper<void (thread::*)(), reference_wrapper<thread>>::__type __bind_simple(void (thread:…
|