Skip to content

Commit

Permalink
posix: add pthread_mutex initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegHahm committed Nov 19, 2015
1 parent 8c869c6 commit 214e016
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sys/posix/pthread/include/pthread_mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 214e016

Please sign in to comment.