From 425638fbc756082c8f828b2931787f7128afa1e8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 10 Jun 2000 19:51:45 +0000 Subject: [PATCH] Update. 2000-06-10 Ulrich Drepper * sysdeps/pthread/timer_routines.c (list_append): Little fix to reall append the entry. list and remove from active list. --- linuxthreads/ChangeLog | 7 ++++++- linuxthreads/sysdeps/pthread/timer_routines.c | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 4b41350..c508e8d 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,8 @@ +2000-06-10 Ulrich Drepper + + * sysdeps/pthread/timer_routines.c (list_append): Little fix to + reall append the entry. + 2000-06-10 Andreas Jaeger * lockfile.c (__fresetlockfiles): Remove unused variable fp. @@ -13,7 +18,7 @@ * sysdeps/pthread/timer_routines.c: Thread allocation and deallocation function now remembers to put thread on active - list and remove from active list. + list and remove from active list. Thus now the feature of binding multiple timers to a single thread actually works. diff --git a/linuxthreads/sysdeps/pthread/timer_routines.c b/linuxthreads/sysdeps/pthread/timer_routines.c index 42c0131..520f6ee 100644 --- a/linuxthreads/sysdeps/pthread/timer_routines.c +++ b/linuxthreads/sysdeps/pthread/timer_routines.c @@ -81,7 +81,7 @@ list_append (struct list_links *list, struct list_links *newp) newp->prev = list->prev; newp->next = list; list->prev->next = newp; - list->prev = list; + list->prev = newp; } static inline void @@ -500,7 +500,7 @@ thread_attr_compare (const pthread_attr_t *left, const pthread_attr_t *right) /* Search the list of active threads and find one which has matching attributes. Global mutex lock must be held by caller. */ struct thread_node * -__timer_thread_find_matching (const pthread_attr_t *desired_attr, +__timer_thread_find_matching (const pthread_attr_t *desired_attr, clockid_t desired_clock_id) { struct list_links *iter = list_first (&thread_active_list); -- 2.7.4