/freebsd-11-stable/contrib/llvm-project/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 23 #include <thread> 26 typedef std::thread thread; typedef in namespace:llvm 35 struct thread { 36 thread() {} [all...] |
/freebsd-11-stable/sys/powerpc/include/ |
H A D | altivec.h | 35 void enable_vec(struct thread *); 36 void save_vec(struct thread *); 37 void save_vec_nodrop(struct thread *);
|
/freebsd-11-stable/lib/libthr/thread/ |
H A D | thr_info.c | 35 __FBSDID("$FreeBSD: stable/11/lib/libthr/thread/thr_info.c 349984 2019-07-14 05:41:14Z kib $"); 49 thr_set_name_np(struct pthread *thread, const char *name) argument 52 free(thread->name); 53 thread->name = name != NULL ? strdup(name) : NULL; 56 /* Set the thread name for debug. */ 58 _pthread_set_name_np(pthread_t thread, const char *name) argument 63 if (curthread == thread) { 64 THR_THREAD_LOCK(curthread, thread); 65 thr_set_name(thread->tid, name); 66 thr_set_name_np(thread, nam 80 thr_get_name_np(struct pthread *thread, char *buf, size_t len) argument 92 _pthread_get_name_np(pthread_t thread, char *buf, size_t len) argument [all...] |
H A D | thr_suspend_np.c | 47 /* Suspend a thread: */ 49 _pthread_suspend_np(pthread_t thread) argument 54 /* Suspending the current thread doesn't make sense. */ 55 if (thread == _get_curthread()) 58 /* Add a reference to the thread: */ 59 else if ((ret = _thr_ref_add(curthread, thread, /*include dead*/0)) 62 THR_THREAD_LOCK(curthread, thread); 63 suspend_common(curthread, thread, 1); 65 THR_THREAD_UNLOCK(curthread, thread); 68 _thr_ref_delete(curthread, thread); 108 struct pthread *thread; local 160 suspend_common(struct pthread *curthread, struct pthread *thread, int waitok) argument [all...] |
H A D | thr_list.c | 29 __FBSDID("$FreeBSD: stable/11/lib/libthr/thread/thr_list.c 346156 2019-04-12 15:15:27Z kib $"); 75 static void thr_destroy(struct pthread *curthread, struct pthread *thread); 120 * XXX we don't free initial thread, because there might 121 * have some code referencing initial thread. 124 DBG_MSG("Initial thread won't be freed\n"); 135 struct pthread *thread = NULL; local 143 if ((thread = TAILQ_FIRST(&free_threadq)) != NULL) { 144 TAILQ_REMOVE(&free_threadq, thread, tle); 150 if (thread == NULL) { 154 thread 187 _thr_free(struct pthread *curthread, struct pthread *thread) argument 220 thr_destroy(struct pthread *curthread __unused, struct pthread *thread) argument 234 _thr_link(struct pthread *curthread, struct pthread *thread) argument 246 _thr_unlink(struct pthread *curthread, struct pthread *thread) argument 255 _thr_hash_add(struct pthread *thread) argument 264 _thr_hash_remove(struct pthread *thread) argument 270 _thr_hash_find(struct pthread *thread) argument 289 _thr_ref_add(struct pthread *curthread, struct pthread *thread, int include_dead) argument 309 _thr_ref_delete(struct pthread *curthread, struct pthread *thread) argument 319 _thr_try_gc(struct pthread *curthread, struct pthread *thread) argument 340 _thr_find_thread(struct pthread *curthread, struct pthread *thread, int include_dead) argument [all...] |
H A D | thr_resume_np.c | 44 static void resume_common(struct pthread *thread); 46 /* Resume a thread: */ 48 _pthread_resume_np(pthread_t thread) argument 53 /* Add a reference to the thread: */ 54 if ((ret = _thr_find_thread(curthread, thread, /*include dead*/0)) == 0) { 56 resume_common(thread); 57 THR_THREAD_UNLOCK(curthread, thread); 66 struct pthread *thread; local 72 /* Take the thread list lock: */ 75 TAILQ_FOREACH(thread, 91 resume_common(struct pthread *thread) argument [all...] |
/freebsd-11-stable/sys/compat/linux/ |
H A D | linux_sysproto.h | 34 int linux_nosys(struct thread *, struct nosys_args *);
|
H A D | linux_emul.h | 43 int flags; /* thread emuldata flags */ 44 int em_tid; /* thread id */ 49 struct linux_emuldata *em_find(struct thread *); 52 void linux_proc_init(struct thread *, struct thread *, int); 54 void linux_schedtail(struct thread *); 56 void linux_thread_dtor(void *arg __unused, struct thread *); 57 void linux_thread_detach(struct thread *); 58 int linux_common_execve(struct thread *, struct image_args *);
|
/freebsd-11-stable/sys/sys/ |
H A D | runq.h | 34 struct thread; 46 TAILQ_HEAD(rqhead, thread); 65 void runq_add(struct runq *, struct thread *, int); 66 void runq_add_pri(struct runq *, struct thread *, u_char, int); 68 struct thread *runq_choose(struct runq *); 69 struct thread *runq_choose_from(struct runq *, u_char); 70 struct thread *runq_choose_fuzz(struct runq *, int); 72 void runq_remove(struct runq *, struct thread *); 73 void runq_remove_idx(struct runq *, struct thread *, u_char *);
|
H A D | syscallsubr.h | 66 int kern___getcwd(struct thread *td, char *buf, enum uio_seg bufseg, 68 int kern_accept(struct thread *td, int s, struct sockaddr **name, 70 int kern_accept4(struct thread *td, int s, struct sockaddr **name, 72 int kern_accessat(struct thread *td, int fd, char *path, 74 int kern_adjtime(struct thread *td, struct timeval *delta, 76 int kern_alternate_path(struct thread *td, const char *prefix, const char *path, 78 int kern_bindat(struct thread *td, int dirfd, int fd, struct sockaddr *sa); 79 int kern_cap_ioctls_limit(struct thread *td, int fd, u_long *cmds, 81 int kern_cap_rights_limit(struct thread *td, int fd, cap_rights_t *rights); 82 int kern_chdir(struct thread *t [all...] |
H A D | sched.h | 82 void sched_exit(struct proc *p, struct thread *childtd); 83 void sched_fork(struct thread *td, struct thread *childtd); 84 void sched_fork_exit(struct thread *td); 85 void sched_class(struct thread *td, int class); 92 void sched_exit_thread(struct thread *td, struct thread *child); 93 u_int sched_estcpu(struct thread *td); 94 void sched_fork_thread(struct thread *td, struct thread *chil [all...] |
H A D | mqueue.h | 41 struct thread; 43 extern void (*mq_fdclose)(struct thread *td, int fd, struct file *fp);
|
H A D | kthread.h | 45 /* A kernel thread descriptor; used to start "internal" daemons. */ 48 void (*func)(void); /* "main" for kernel thread */ 49 struct thread **global_threadpp; /* ptr to thread ptr save area */ 61 /* create a thread inthe given process. create the process if needed */ 64 struct thread **, 69 struct proc *, struct thread **, 72 int kthread_resume(struct thread *); 75 int kthread_suspend(struct thread *, int);
|
H A D | kdb.h | 35 struct thread; 40 typedef void dbbe_trace_thread_f(struct thread *); 67 extern struct thread *kdb_thread; /* Current thread. */ 73 void kdb_backtrace_thread(struct thread *); 81 struct pcb *kdb_thr_ctx(struct thread *); 82 struct thread *kdb_thr_first(void); 83 struct thread *kdb_thr_from_pid(pid_t); 84 struct thread *kdb_thr_lookup(lwpid_t); 85 struct thread *kdb_thr_nex [all...] |
/freebsd-11-stable/sys/arm64/include/ |
H A D | reg.h | 58 int fill_regs(struct thread *, struct reg *); 59 int set_regs(struct thread *, struct reg *); 60 int fill_fpregs(struct thread *, struct fpreg *); 61 int set_fpregs(struct thread *, struct fpreg *); 62 int fill_dbregs(struct thread *, struct dbreg *); 63 int set_dbregs(struct thread *, struct dbreg *);
|
H A D | vfp.h | 39 void vfp_discard(struct thread *); 41 void vfp_save_state(struct thread *, struct pcb *);
|
/freebsd-11-stable/sys/mips/include/ |
H A D | reg.h | 91 int fill_fpregs(struct thread *, struct fpreg *); 92 int fill_regs(struct thread *, struct reg *); 93 int set_fpregs(struct thread *, struct fpreg *); 94 int set_regs(struct thread *, struct reg *); 95 int fill_dbregs(struct thread *, struct dbreg *); 96 int set_dbregs(struct thread *, struct dbreg *); 102 int fill_regs32(struct thread *, struct reg32 *); 103 int set_regs32(struct thread *, struct reg32 *); 104 int fill_fpregs32(struct thread *, struct fpreg32 *); 105 int set_fpregs32(struct thread *, struc [all...] |
/freebsd-11-stable/sys/riscv/include/ |
H A D | reg.h | 44 uint64_t tp; /* thread pointer */ 64 int fill_regs(struct thread *, struct reg *); 65 int set_regs(struct thread *, struct reg *); 66 int fill_fpregs(struct thread *, struct fpreg *); 67 int set_fpregs(struct thread *, struct fpreg *); 68 int fill_dbregs(struct thread *, struct dbreg *); 69 int set_dbregs(struct thread *, struct dbreg *);
|
/freebsd-11-stable/sys/arm/include/ |
H A D | reg.h | 34 int fill_regs(struct thread *, struct reg *); 35 int set_regs(struct thread *, struct reg *); 36 int fill_fpregs(struct thread *, struct fpreg *); 37 int set_fpregs(struct thread *, struct fpreg *); 38 int fill_dbregs(struct thread *, struct dbreg *); 39 int set_dbregs(struct thread *, struct dbreg *);
|
/freebsd-11-stable/sys/cddl/compat/opensolaris/sys/ |
H A D | zone.h | 41 * Is thread in the global zone? 43 #define INGLOBALZONE(thread) (!jailed((thread)->td_ucred))
|
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | compat.h | 38 struct thread; 41 extern int linux_alloc_current(struct thread *, int flags); 45 linux_set_current(struct thread *td) 52 linux_set_current_flags(struct thread *td, int flags)
|
/freebsd-11-stable/contrib/llvm-project/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
|
/freebsd-11-stable/sys/compat/svr4/ |
H A D | svr4_socket.h | 41 struct thread; 51 int svr4_add_socket(struct thread *, const char *, struct stat *); 53 int svr4_find_socket(struct thread *, struct file *, dev_t, ino_t,
|
/freebsd-11-stable/sys/compat/cloudabi/ |
H A D | cloudabi_util.h | 37 struct thread; 41 int cloudabi_clock_time_get(struct thread *, cloudabi_clockid_t, 66 int cloudabi_futex_condvar_wait(struct thread *, cloudabi_condvar_t *, 69 int cloudabi_futex_lock_rdlock(struct thread *, cloudabi_lock_t *, 72 int cloudabi_futex_lock_wrlock(struct thread *, cloudabi_lock_t *, 77 int cloudabi_sock_recv(struct thread *, cloudabi_fd_t, struct iovec *, size_t, 80 int cloudabi_sock_send(struct thread *, cloudabi_fd_t, struct iovec *, size_t,
|
/freebsd-11-stable/sys/contrib/ck/include/spinlock/ |
H A D | hclh.h | 76 struct ck_spinlock_hclh *thread) 80 /* Indicate to the next thread on queue that they will have to block. */ 81 thread->wait = true; 82 thread->splice = false; 83 thread->cluster_id = (*local_queue)->cluster_id; 85 thread->previous = *local_queue; 91 previous = ck_pr_fas_ptr(local_queue, thread); 92 thread->previous = previous; 94 /* Wait until previous thread from the local queue is done with lock. */ 98 ck_pr_load_int(&previous->cluster_id) == thread 74 ck_spinlock_hclh_lock(struct ck_spinlock_hclh **glob_queue, struct ck_spinlock_hclh **local_queue, struct ck_spinlock_hclh *thread) argument 123 ck_spinlock_hclh_unlock(struct ck_spinlock_hclh **thread) argument [all...] |