]> https://gitweb.dealii.org/ - dealii.git/commitdiff
mark spinlock variables in tests volatile for release mode
authorTimo Heister <timo.heister@gmail.com>
Fri, 8 Nov 2013 14:06:30 +0000 (14:06 +0000)
committerTimo Heister <timo.heister@gmail.com>
Fri, 8 Nov 2013 14:06:30 +0000 (14:06 +0000)
git-svn-id: https://svn.dealii.org/trunk@31589 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/thread_validity_08.cc
tests/base/thread_validity_09.cc

index 2f4bbe18feccef773380495ab9ec59e5c4a859fd..c7bed3a4eb8e7b78045fc7d9ec1efecdc498c528 100644 (file)
@@ -26,7 +26,7 @@
 
 
 Threads::Mutex mutex;
-int spin_lock = 0;
+volatile int spin_lock = 0;
 
 
 void worker ()
index 60d3247d9c263e156e86cb94cf828f6d616fea18..60ec25506f6ab4ee0ece9edd5581999d4fd9540d 100644 (file)
@@ -29,7 +29,7 @@
 
 
 Threads::Mutex mutex;
-int spin_lock = 0;
+volatile int spin_lock = 0;
 
 
 int worker ()

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.