From 214e0161dd8219c277339e73a4dbd7799b8014f6 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Thu, 19 Nov 2015 02:40:40 +0100 Subject: [PATCH] posix: add pthread_mutex initializer --- sys/posix/pthread/include/pthread_mutex.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/posix/pthread/include/pthread_mutex.h b/sys/posix/pthread/include/pthread_mutex.h index 0b2fea8fb956b..d9d74913303a3 100644 --- a/sys/posix/pthread/include/pthread_mutex.h +++ b/sys/posix/pthread/include/pthread_mutex.h @@ -26,6 +26,11 @@ extern "C" { #endif +/** + * Static initializer for @ref pthread_mutex_t struct + */ +#define PTHREAD_MUTEX_INITIALIZER MUTEX_INIT; + /** * @brief Pthread mutexes are quite the same as RIOT mutexes. * @details Recursive locking is not supported.