summaryrefslogtreecommitdiff
path: root/locking.h
diff options
context:
space:
mode:
Diffstat (limited to 'locking.h')
-rw-r--r--locking.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/locking.h b/locking.h
index cb57a9d..2cb93d1 100644
--- a/locking.h
+++ b/locking.h
@@ -11,6 +11,8 @@ struct mutexlock {
pthread_mutex_t lock;
};
+#define MUTEXLOCK_INITIALIZER { .lock = PTHREAD_MUTEX_INITIALIZER }
+
struct rwlock {
pthread_rwlock_t lock;
};