add to pthread.h: pthread_mutex_timedlock and sched.h, time.h
authorRich Felker <dalias@aerifal.cx>
Thu, 17 Feb 2011 02:21:26 +0000 (21:21 -0500)
committerRich Felker <dalias@aerifal.cx>
Thu, 17 Feb 2011 02:21:26 +0000 (21:21 -0500)
include/pthread.h

index ce6273d2b31dc4b992d665a0004958895ba62a47..e820ae55f8d05f89b464200097025fad25b2c23e 100644 (file)
@@ -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 *);