summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-04-01 01:11:22 +0000
committerjeff <jeff@FreeBSD.org>2003-04-01 01:11:22 +0000
commite3addd2765bea48199bbb385fce5863a567b449b (patch)
tree1ba29708e3d33933185588a1795dacbcd21048b7
parent2921bb5e340b11ef7fb7b5edc4475f8c07c560f9 (diff)
downloadFreeBSD-src-e3addd2765bea48199bbb385fce5863a567b449b.zip
FreeBSD-src-e3addd2765bea48199bbb385fce5863a567b449b.tar.gz
- Add an entry and a head for the queue of threads blocked on a umtx.
- Add a prototype for thr_exit1().
-rw-r--r--sys/sys/proc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 2f7d9a9..42eda06 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -307,6 +307,9 @@ struct thread {
sigset_t td_oldsigmask; /* (c) Saved mask from pre sigpause. */
sigset_t td_sigmask; /* (c) Current signal mask. */
sigset_t td_siglist; /* (c) Sigs arrived, not delivered. */
+ STAILQ_HEAD(, thread) td_umtxq; /* (p) List of threads blocked by us. */
+ STAILQ_ENTRY(thread) td_umtx; /* (p) Link for when we're blocked. */
+
#define td_endzero td_base_pri
/* Copied during fork1() or thread_sched_upcall() */
@@ -948,6 +951,7 @@ void upcall_stash(struct kse_upcall *ke);
void thread_sanity_check(struct thread *td, char *);
void thread_stopped(struct proc *p);
void thread_switchout(struct thread *td);
+void thr_exit1(void);
#endif /* _KERNEL */
#endif /* !_SYS_PROC_H_ */
OpenPOWER on IntegriCloud