1 /* 2 * Copyright 2019, Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Augustin Cavalier <waddlesplash> 7 */ 8 #ifndef __NVME_PLATFORM_H__ 9 #define __NVME_PLATFORM_H__ 10 11 #include <lock.h> 12 13 14 #define pthread_mutex_t mutex 15 #undef PTHREAD_MUTEX_INITIALIZER 16 #define PTHREAD_MUTEX_INITIALIZER MUTEX_INITIALIZER(__FUNCTION__) 17 #define pthread_mutex_init(mtx, attr) mutex_init(mtx, __FUNCTION__) 18 #define pthread_mutex_destroy mutex_destroy 19 #define pthread_mutex_lock mutex_lock 20 #define pthread_mutex_unlock mutex_unlock 21 22 23 #endif /* __NVME_PLATFORM_H__ */ 24