From 7f49f8e05b213666f37ec0e1fb94d3be2b1fa924 Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Tue, 1 Apr 2003 01:11:22 +0000 Subject: [PATCH] - Add an entry and a head for the queue of threads blocked on a umtx. - Add a prototype for thr_exit1(). --- sys/sys/proc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 2f7d9a92dcd..42eda069c17 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_ */