mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
- 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:
parent
69404b5090
commit
7f49f8e05b
1 changed files with 4 additions and 0 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue