* sysdeps/pthread/posix-timer.h (timer_ptr2id): Operands in
subtraction were switched.
2000-06-08 Ulrich Drepper <drepper@redhat.com>
+ * sysdeps/pthread/posix-timer.h (timer_ptr2id): Operands in
+ subtraction were switched.
+
* sysdeps/pthread/timer_routines.c (init_module): Use
THREAD_MAXNODES threads.
/* Internal representation of a timer. */
struct timer_node
{
- pid_t creator_pid;
struct list_links links;
struct sigevent event;
clockid_t clock;
unsigned int armed;
unsigned int inuse;
struct thread_node *thread;
+ pid_t creator_pid;
};
static inline int
timer_ptr2id (struct timer_node *timer)
{
- return __timer_array - timer;
+ return timer - __timer_array;
}