Mark td_generation as volatile.

This commit is contained in:
Bruce M Simpson 2003-10-05 11:15:18 +00:00
parent aac7652ecd
commit f6f992995a

View File

@ -298,7 +298,7 @@ struct thread {
sigset_t td_siglist; /* (c) Sigs arrived, not delivered. */
sigset_t *td_waitset; /* (c) Wait set for sigwait */
TAILQ_ENTRY(thread) td_umtx; /* (c?) Link for when we're blocked. */
u_int td_generation; /* (k) Enable detection of preemption */
volatile u_int td_generation; /* (k) Enable detection of preemption */
#define td_endzero td_base_pri