(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 a43d4ac..85320d3 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 71bc6dd..e2b2be8 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;
-  */
 }