From 165ab1d78d209289a971f121cd3331475b340692 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 9 Jun 2000 04:33:59 +0000 Subject: Update. * sysdeps/pthread/timer_create.c (timer_create): Correct names of CPUTIME clock ID. Add support for thread clocks. --- linuxthreads/sysdeps/pthread/timer_create.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'linuxthreads/sysdeps') diff --git a/linuxthreads/sysdeps/pthread/timer_create.c b/linuxthreads/sysdeps/pthread/timer_create.c index 84e5cfed2f..d6d756d2a6 100644 --- a/linuxthreads/sysdeps/pthread/timer_create.c +++ b/linuxthreads/sysdeps/pthread/timer_create.c @@ -21,6 +21,7 @@ #include #include #include +#include #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 ) { -- cgit 1.4.1