mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-28 12:13:37 +08:00
(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:
parent
36c96ccd87
commit
d8a60a1577
@ -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.
|
||||
|
@ -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;
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user