From: Mathieu Desnoyers Date: Fri, 24 Oct 2014 11:10:42 +0000 (-0400) Subject: workqueue: use int type for shutdown load/store X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b19099feed421e7f4c97b207f0f7779c5eae5b52;p=userspace-rcu.git workqueue: use int type for shutdown load/store "bool" could end up being tricky if other fields are added in the same structure (updating other fields without lock). Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu/workqueue-fifo.h b/urcu/workqueue-fifo.h index c2766e5..e2dd72f 100644 --- a/urcu/workqueue-fifo.h +++ b/urcu/workqueue-fifo.h @@ -69,7 +69,7 @@ struct urcu_workqueue { unsigned long nr_work; /* Current number of work items */ int worker_flags; /* Worker flags */ - bool shutdown; /* Shutdown performed */ + int shutdown; /* Shutdown performed */ }; struct urcu_worker {