]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(thread_func): Remove mutex_unlock call since it's never executed.
authorAndreas Jaeger <aj@suse.de>
Sat, 21 Apr 2001 20:17:26 +0000 (20:17 +0000)
committerAndreas Jaeger <aj@suse.de>
Sat, 21 Apr 2001 20:17:26 +0000 (20:17 +0000)
(thread_func): Remove mutex_unlock call since it's never executed.

linuxthreads/ChangeLog
linuxthreads/sysdeps/pthread/timer_routines.c

index a43d4acd46fbde371c0fc9d699f03cab6e1efcf0..85320d31ef8cc6fd683aac6c93a9044654a9fc86 100644 (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.
index 71bc6dd814ebf98ef10cff5d560de9d05d7d29e8..e2b2be8b0d6d435c71bbc360c129c22c7117ce9b 100644 (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;
-  */
 }