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

LibPthread: Add stubs for pthread_spin_* functions

The stress-ng port depends on these now that it detects we have
thread support.
This commit is contained in:
Gunnar Beutner 2021-04-19 15:48:47 +02:00 committed by Andreas Kling
parent 88cebb05ad
commit 2520ccfca4
2 changed files with 28 additions and 0 deletions

View file

@ -81,6 +81,9 @@ int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param
#define PTHREAD_MUTEX_DEFAULT PTHREAD_MUTEX_NORMAL
#define PTHREAD_MUTEX_INITIALIZER __PTHREAD_MUTEX_INITIALIZER
#define PTHREAD_PROCESS_PRIVATE 1
#define PTHREAD_PROCESS_SHARED 2
#define PTHREAD_COND_INITIALIZER \
{ \
0, 0, CLOCK_MONOTONIC_COARSE \