]> git.sesse.net Git - casparcg/blobdiff - common/lock.h
[logging] Suppress the logging of full path names in stack traces for Linux as well.
[casparcg] / common / lock.h
index f0ae64b6c338a07f21893e4e850a9550987b714a..2501182b665958d03548416d8fd5f91ba444df65 100644 (file)
@@ -1,12 +1,14 @@
 #pragma once
 
+#include <boost/thread/lock_guard.hpp>
+
 namespace caspar {
 
 template<typename T, typename F>
 auto lock(T& mutex, F&& func) -> decltype(func())
 {
-       T::scoped_lock lock(mutex);
+       boost::lock_guard<T> lock(mutex);
        return func();
 }
 
-}
\ No newline at end of file
+}