1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:27:46 +00:00

LibPthread: Add PTHREAD_CANCELED

This is just the expected return value of pthread_join() when it fails.
This commit is contained in:
Ali Mohammad Pur 2022-02-11 16:33:11 +03:30 committed by Andreas Kling
parent 8c29cc879d
commit 99f9860854

View file

@ -33,6 +33,8 @@ int pthread_attr_destroy(pthread_attr_t*);
#define PTHREAD_CREATE_JOINABLE 0
#define PTHREAD_CREATE_DETACHED 1
#define PTHREAD_CANCELED (-1)
int pthread_attr_getdetachstate(const pthread_attr_t*, int*);
int pthread_attr_setdetachstate(pthread_attr_t*, int);