From 99f9860854fb1263513849a3a28dcf5fadcc8d24 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Fri, 11 Feb 2022 16:33:11 +0330 Subject: [PATCH] LibPthread: Add PTHREAD_CANCELED This is just the expected return value of pthread_join() when it fails. --- Userland/Libraries/LibPthread/pthread.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibPthread/pthread.h b/Userland/Libraries/LibPthread/pthread.h index e0cb2cadea..009ca6bd65 100644 --- a/Userland/Libraries/LibPthread/pthread.h +++ b/Userland/Libraries/LibPthread/pthread.h @@ -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);