Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 9 Jun 2000 04:33:59 +0000 (04:33 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 9 Jun 2000 04:33:59 +0000 (04:33 +0000)
* sysdeps/pthread/timer_create.c (timer_create): Correct names of
CPUTIME clock ID.  Add support for thread clocks.

linuxthreads/ChangeLog
linuxthreads/sysdeps/pthread/timer_create.c

index d8bc2cf..fcb9f9a 100644 (file)
@@ -1,5 +1,8 @@
 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/pthread/timer_create.c (timer_create): Correct names of
+       CPUTIME clock ID.  Add support for thread clocks.
+
        * sysdeps/pthread/posix-timer.h (timer_ptr2id): Operands in
        subtraction were switched.
 
index 84e5cfe..d6d756d 100644 (file)
@@ -21,6 +21,7 @@
 #include <signal.h>
 #include <pthread.h>
 #include <time.h>
+#include <unistd.h>
 
 #include "posix-timer.h"
 
@@ -38,7 +39,10 @@ timer_create (clock_id, evp, timerid)
 
   if (clock_id != CLOCK_REALTIME
 #ifdef _POSIX_CPUTIME
-      && clock_id != CLOCK_CPUTIME
+      && clock_id != CLOCK_PROCESS_CPUTIME_ID
+#endif
+#ifdef _POSIX_THREAD_CPUTIME
+      && clock_id != CLOCK_THREAD_CPUTIME_ID
 #endif
       )
     {