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
Notes: sideshowbarker 2024-07-17 18:59:07 +09:00

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);