Make UEFI boot-platform build again
[haiku.git] / headers / private / kernel / user_mutex.h
blobb0594eb631d27c53bb76f189778871e5b4604b56
1 /*
2 * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _KERNEL_USER_MUTEX_H
6 #define _KERNEL_USER_MUTEX_H
9 #include <SupportDefs.h>
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
16 void user_mutex_init();
18 status_t _user_mutex_lock(int32* mutex, const char* name, uint32 flags,
19 bigtime_t timeout);
20 status_t _user_mutex_unlock(int32* mutex, uint32 flags);
21 status_t _user_mutex_switch_lock(int32* fromMutex, int32* toMutex,
22 const char* name, uint32 flags, bigtime_t timeout);
23 status_t _user_mutex_sem_acquire(int32* sem, const char* name, uint32 flags,
24 bigtime_t timeout);
25 status_t _user_mutex_sem_release(int32* sem);
27 #ifdef __cplusplus
29 #endif
32 #endif /* _KERNEL_USER_MUTEX_H */