aboutsummaryrefslogtreecommitdiffstats
path: root/CommonLibs/Threads.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CommonLibs/Threads.cpp')
-rw-r--r--CommonLibs/Threads.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/CommonLibs/Threads.cpp b/CommonLibs/Threads.cpp
index dd57d40..020d94e 100644
--- a/CommonLibs/Threads.cpp
+++ b/CommonLibs/Threads.cpp
@@ -40,7 +40,9 @@
using namespace std;
-
+#ifndef HAVE_ATOMIC_OPS
+ pthread_mutex_t atomic_ops_mutex = PTHREAD_MUTEX_INITIALIZER;
+#endif
Mutex gStreamLock; ///< Global lock to control access to cout and cerr.