(thread_func): Remove mutex_unlock call since it's never executed.

(thread_func): Remove mutex_unlock call since it's never executed.
This commit is contained in:
Andreas Jaeger 2001-04-21 20:17:26 +00:00
parent 36c96ccd87
commit d8a60a1577
2 changed files with 2 additions and 4 deletions

View File

@ -2,6 +2,7 @@
* sysdeps/pthread/timer_routines.c (thread_func): Add noreturn
attribute, remove statements that will never be executed.
(thread_func): Remove mutex_unlock call since it's never executed.
* manager.c (__pthread_manager): Add noreturn
attribute.

View File

@ -439,12 +439,9 @@ thread_func (void *arg)
pthread_cond_wait (&self->cond, &__timer_mutex);
}
/* These statements will never be executed since the while loop
loops forever:
pthread_mutex_unlock (&__timer_mutex);
loops forever - but we have to add them for proper nesting. */
pthread_cleanup_pop (1);
return NULL;
*/
}