diff options
author | Rich Felker <dalias@aerifal.cx> | 2020-02-26 10:09:32 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020-02-26 10:09:32 -0500 |
commit | 4e0796dfc72f289e97dce3332e6186c6b00b693d (patch) | |
tree | fb72da5119e533e36d9c8051f37bdba6d8310871 /include | |
parent | 7063c459e7dbd63c2c94e04413743abab5272001 (diff) | |
download | musl-4e0796dfc72f289e97dce3332e6186c6b00b693d.tar.gz musl-4e0796dfc72f289e97dce3332e6186c6b00b693d.tar.bz2 musl-4e0796dfc72f289e97dce3332e6186c6b00b693d.tar.xz musl-4e0796dfc72f289e97dce3332e6186c6b00b693d.zip |
add PTHREAD_NULL
this is added for POSIX-future as the outcome of Austin Group issue
599. since it's in the reserved namespace for pthread.h, there are no
namespace considerations for adding it early.
Diffstat (limited to 'include')
-rw-r--r-- | include/pthread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/pthread.h b/include/pthread.h index 984db680..0492f26a 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -74,6 +74,9 @@ extern "C" { #define PTHREAD_BARRIER_SERIAL_THREAD (-1) +#define PTHREAD_NULL ((pthread_t)0) + + int pthread_create(pthread_t *__restrict, const pthread_attr_t *__restrict, void *(*)(void *), void *__restrict); int pthread_detach(pthread_t); _Noreturn void pthread_exit(void *); |