From d95a8c6f960d8a29b2b00134cb5db78551f2f343 Mon Sep 17 00:00:00 2001 From: bms Date: Sun, 5 Oct 2003 11:15:18 +0000 Subject: [PATCH] Mark td_generation as volatile. --- sys/sys/proc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/proc.h b/sys/sys/proc.h index ab858ccd636..8fc6b6ff590 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -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 -- 2.45.2