diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-02-16 21:21:26 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-02-16 21:21:26 -0500 |
commit | 56b784d603827a564a40b19228078a361959cd14 (patch) | |
tree | 611f07ebe822e55dba3643f4037b5a128691ff64 | |
parent | 5cbd76c6b05b381f269e0e204e10690d69f1d6ea (diff) | |
download | musl-56b784d603827a564a40b19228078a361959cd14.tar.gz musl-56b784d603827a564a40b19228078a361959cd14.tar.xz musl-56b784d603827a564a40b19228078a361959cd14.zip |
add to pthread.h: pthread_mutex_timedlock and sched.h, time.h
-rw-r--r-- | include/pthread.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/pthread.h b/include/pthread.h index ce6273d2..e820ae55 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -12,7 +12,8 @@ extern "C" { #include <bits/alltypes.h> -struct sched_param; +#include <sched.h> +#include <time.h> typedef int pthread_once_t, pthread_key_t, pthread_spinlock_t; typedef int pthread_mutexattr_t, pthread_condattr_t, pthread_barrierattr_t; @@ -121,6 +122,7 @@ int pthread_mutex_init(pthread_mutex_t *, const pthread_mutexattr_t *); int pthread_mutex_lock(pthread_mutex_t *); int pthread_mutex_unlock(pthread_mutex_t *); int pthread_mutex_trylock(pthread_mutex_t *); +int pthread_mutex_timedlock(pthread_mutex_t *, const struct timespec *); int pthread_mutex_destroy(pthread_mutex_t *); int pthread_cond_init(pthread_cond_t *, const pthread_condattr_t *); |