aboutsummaryrefslogtreecommitdiff
path: root/src/common.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-08-18 21:07:06 +0100
committergingerBill <bill@gingerbill.org>2021-08-18 21:07:06 +0100
commit740995df3d677afa3de57e98e1cda082089c6caf (patch)
tree41d36ea9e0fbee8944c0eaeb8f86880423dde956 /src/common.cpp
parentaa5c3da4149ab37f5641b06f76f430568ce88144 (diff)
Remove attribute parameter for `pthread_mutex_init`
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);