2001-04-21 Andreas Jaeger <aj@suse.de>
+ * sysdeps/pthread/timer_routines.c (thread_func): Add noreturn
+ attribute, remove statements that will never be executed.
+
* manager.c (__pthread_manager): Add noreturn
attribute.
(pthread_start_thread): Likewise, remove return statement.
/* Helper code for POSIX timer implementation on LinuxThreads.
- Copyright (C) 2000 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Kaz Kylheku <kaz@ashi.footprints.net>.
timers in chronological order as close to their scheduled time as
possible. */
static void *
+__attribute__ ((noreturn))
thread_func (void *arg)
{
struct thread_node *self = arg;
else
pthread_cond_wait (&self->cond, &__timer_mutex);
}
-
+ /* These statements will never be executed since the while loop
+ loops forever:
pthread_mutex_unlock (&__timer_mutex);
pthread_cleanup_pop (1);
return NULL;
+ */
}