+2000-06-10 Ulrich Drepper <drepper@redhat.com>
+
+ * sysdeps/pthread/timer_routines.c (list_append): Little fix to
+ reall append the entry.
+
2000-06-10 Andreas Jaeger <aj@suse.de>
* lockfile.c (__fresetlockfiles): Remove unused variable fp.
* 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.
newp->prev = list->prev;
newp->next = list;
list->prev->next = newp;
- list->prev = list;
+ list->prev = newp;
}
static inline void
/* 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);