mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +00:00
LibC+LibPthread: Add PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
This is a common but non-standard way of initializing a pthread_mutex_t in recursive mode.
This commit is contained in:
parent
908f86b061
commit
90e5fd5b53
2 changed files with 6 additions and 0 deletions
|
@ -66,6 +66,7 @@ int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param
|
|||
#define PTHREAD_MUTEX_RECURSIVE __PTHREAD_MUTEX_RECURSIVE
|
||||
#define PTHREAD_MUTEX_DEFAULT PTHREAD_MUTEX_NORMAL
|
||||
#define PTHREAD_MUTEX_INITIALIZER __PTHREAD_MUTEX_INITIALIZER
|
||||
#define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP __PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
|
||||
|
||||
#define PTHREAD_PROCESS_PRIVATE 1
|
||||
#define PTHREAD_PROCESS_SHARED 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue