From ee4c910ed410cf13a62befe670277a42ced4c26f Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Mon, 15 Dec 2008 03:13:14 +0100 Subject: [PATCH] qualify with volatile (fix) --- tests/common/multithread-locking-test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/common/multithread-locking-test.cpp b/tests/common/multithread-locking-test.cpp index d03fe5c28..465929e55 100644 --- a/tests/common/multithread-locking-test.cpp +++ b/tests/common/multithread-locking-test.cpp @@ -56,8 +56,8 @@ namespace lib { class Victim { - long cnt_[NUM_COUNTERS]; - uint step_; ///< @note stored as instance variable + volatile long cnt_[NUM_COUNTERS]; + volatile uint step_; ///< @note stored as instance variable void pause ()