mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibPthread: Add PTHREAD_CANCELED
This is just the expected return value of pthread_join() when it fails.
This commit is contained in:
parent
8c29cc879d
commit
99f9860854
Notes:
sideshowbarker
2024-07-17 18:59:07 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/99f9860854 Pull-request: https://github.com/SerenityOS/serenity/pull/12435
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue