From 860b26db5d48898418e90a23cd465013a59f2eb2 Mon Sep 17 00:00:00 2001 From: heister Date: Fri, 8 Nov 2013 14:06:30 +0000 Subject: [PATCH] mark spinlock variables in tests volatile for release mode git-svn-id: https://svn.dealii.org/trunk@31589 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/base/thread_validity_08.cc | 2 +- tests/base/thread_validity_09.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/base/thread_validity_08.cc b/tests/base/thread_validity_08.cc index 2f4bbe18fe..c7bed3a4eb 100644 --- a/tests/base/thread_validity_08.cc +++ b/tests/base/thread_validity_08.cc @@ -26,7 +26,7 @@ Threads::Mutex mutex; -int spin_lock = 0; +volatile int spin_lock = 0; void worker () diff --git a/tests/base/thread_validity_09.cc b/tests/base/thread_validity_09.cc index 60d3247d9c..60ec25506f 100644 --- a/tests/base/thread_validity_09.cc +++ b/tests/base/thread_validity_09.cc @@ -29,7 +29,7 @@ Threads::Mutex mutex; -int spin_lock = 0; +volatile int spin_lock = 0; int worker () -- 2.39.5