- Add an entry and a head for the queue of threads blocked on a umtx.

- Add a prototype for thr_exit1().
This commit is contained in:
jeff 2003-04-01 01:11:22 +00:00
parent 2921bb5e34
commit e3addd2765

@ -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_ */