From: Timo Heister Date: Fri, 8 Nov 2013 14:06:30 +0000 (+0000) Subject: mark spinlock variables in tests volatile for release mode X-Git-Tag: v8.1.0~351 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dfa5123c208f8e2cf65a08f0e34af9a1f4010a0;p=dealii.git mark spinlock variables in tests volatile for release mode git-svn-id: https://svn.dealii.org/trunk@31589 0785d39b-7218-0410-832d-ea1e28bc413d --- 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 ()