forked from haiku/haiku
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9026ac8
commit 1886cb7
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef _LINUX_MUTEX_H_ | ||
#define _LINUX_MUTEX_H_ | ||
|
||
#include <lock.h> | ||
|
||
typedef mutex mutex_t; | ||
|
||
#define mutex_lock_nested(_m, _s) mutex_lock((_m)) | ||
#define mutex_lock_nest_lock(_m, _s) mutex_lock((_m)) | ||
|
||
#define mutex_init(_m) \ | ||
mutex_init((_m), mutex_name(#_m)) | ||
|
||
#define linux_mutex_init(m, name, flags) \ | ||
mutex_init_etc((m), (name), (flags)) | ||
|
||
|
||
#define linux_mutex_destroy(m) \ | ||
mutex_destroy((m)) | ||
|
||
#endif /* _LINUX_MUTEX_H_ */ |