1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:37:36 +00:00

LibPthread+LibC: Support PTHREAD_MUTEX_RECURSIVE

This allows SDL to build against our native recursive mutex instead
of providing its own. Also it's just a nice feature to have. :^)
This commit is contained in:
Andreas Kling 2019-12-22 14:21:59 +01:00
parent 523fd6533e
commit 0c97380ee6
3 changed files with 55 additions and 16 deletions

View file

@ -63,7 +63,14 @@ struct utimbuf {
typedef int pthread_t;
typedef int pthread_key_t;
typedef void* pthread_once_t;
typedef uint32_t pthread_mutex_t;
typedef struct __pthread_mutex_t {
uint32_t lock;
pthread_t owner;
int level;
int type;
} pthread_mutex_t;
typedef void* pthread_attr_t;
typedef struct __pthread_mutexattr_t {
int type;