aboutsummaryrefslogtreecommitdiff
path: root/src/common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.cpp')
-rw-r--r--src/common.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common.cpp b/src/common.cpp
index d02fd9371..96e29f822 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -50,11 +50,9 @@
#else
struct BlockingMutex {
pthread_mutex_t pthread_mutex;
- pthread_mutexattr_t pthread_mutexattr;
};
void mutex_init(BlockingMutex *m) {
- pthread_mutexattr_init(&m->pthread_mutexattr);
- pthread_mutex_init(&m->pthread_mutex, &m->pthread_mutexattr);
+ pthread_mutex_init(&m->pthread_mutex, nullptr);
}
void mutex_destroy(BlockingMutex *m) {
pthread_mutex_destroy(&m->pthread_mutex);