[shark] 09/58: added a global shark lock
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Mar 16 10:05:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository shark.
commit 60ea1f0d5c9661b1c6c1efd399bf7d5ba30dfbc4
Author: Oswin Krause <oswin.krause at di.ku.dk>
Date: Fri Jan 22 11:55:03 2016 +0100
added a global shark lock
---
include/shark/Core/OpenMP.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/shark/Core/OpenMP.h b/include/shark/Core/OpenMP.h
index 583cdf8..0ad3d36 100644
--- a/include/shark/Core/OpenMP.h
+++ b/include/shark/Core/OpenMP.h
@@ -50,7 +50,7 @@ for
_Pragma ( "omp parallel for" )\
for
-#define SHARK_CRITICAL_REGION _Pragma("omp critical")
+#define SHARK_CRITICAL_REGION _Pragma("omp critical (globalSharkLock)")
#endif
#define SHARK_NUM_THREADS (std::size_t)(omp_in_parallel()?omp_get_num_threads():omp_get_max_threads())
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/shark.git
More information about the debian-science-commits
mailing list