]> git.cworth.org Git - apitrace/blobdiff - common/os_posix.cpp
Move mutex abstraction to os_thread.hpp.
[apitrace] / common / os_posix.cpp
index 7dc2bb46a0d54400aee1a297e1064d10a01043f0..65c5404e3c0e64dd92c2184143474e05fe815b10 100644 (file)
@@ -32,7 +32,6 @@
 #include <unistd.h>
 #include <sys/time.h>
 #include <sys/wait.h>
-#include <pthread.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <signal.h>
 namespace os {
 
 
-static pthread_mutex_t 
-mutex = PTHREAD_MUTEX_INITIALIZER;
-
-
-void
-acquireMutex(void)
-{
-    pthread_mutex_lock(&mutex);
-}
-
-
-void
-releaseMutex(void)
-{
-    pthread_mutex_unlock(&mutex);
-}
-
-
 String
 getProcessName(void)
 {