From: heister Date: Fri, 8 Nov 2013 14:06:30 +0000 (+0000) Subject: mark spinlock variables in tests volatile for release mode X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=860b26db5d48898418e90a23cd465013a59f2eb2;p=dealii-svn.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 ()