According to POSIX, I can statically initialise a mutex this way:
pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
However, what if I want the mutex to be recursive? Mutexes are non-recursive be default and there's no way to supply mutex attributes to the static initialisation.