mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
Update.
* sysdeps/pthread/timer_create.c (timer_create): Correct names of CPUTIME clock ID. Add support for thread clocks.
This commit is contained in:
parent
f2a5974b32
commit
165ab1d78d
@ -1,5 +1,8 @@
|
|||||||
2000-06-08 Ulrich Drepper <drepper@redhat.com>
|
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
|
* sysdeps/pthread/posix-timer.h (timer_ptr2id): Operands in
|
||||||
subtraction were switched.
|
subtraction were switched.
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "posix-timer.h"
|
#include "posix-timer.h"
|
||||||
|
|
||||||
@ -38,7 +39,10 @@ timer_create (clock_id, evp, timerid)
|
|||||||
|
|
||||||
if (clock_id != CLOCK_REALTIME
|
if (clock_id != CLOCK_REALTIME
|
||||||
#ifdef _POSIX_CPUTIME
|
#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
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user