libnvme_haiku: Name mutexes after the function they are allocated in.

This commit is contained in:
Augustin Cavalier 2020-04-23 01:02:36 -04:00
parent 9f703d301c
commit ccb11fb4f2

View File

@ -13,8 +13,8 @@
#define pthread_mutex_t mutex
#undef PTHREAD_MUTEX_INITIALIZER
#define PTHREAD_MUTEX_INITIALIZER MUTEX_INITIALIZER(__FILE__)
#define pthread_mutex_init(mtx, attr) mutex_init(mtx, __FILE__)
#define PTHREAD_MUTEX_INITIALIZER MUTEX_INITIALIZER(__FUNCTION__)
#define pthread_mutex_init(mtx, attr) mutex_init(mtx, __FUNCTION__)
#define pthread_mutex_destroy mutex_destroy
#define pthread_mutex_lock mutex_lock
#define pthread_mutex_unlock mutex_unlock