[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Fix pthread_cond_init



pthread_cond_init didn't fully initialize condition variables.

This made Galeon, Evolution and Nautilus use up 100% CPU time.


--- nptl/pthread_cond_init.c~	2002-09-19 11:57:30.000000000 +0200
+++ nptl/pthread_cond_init.c	2002-11-01 15:29:38.000000000 +0100
@@ -30,6 +30,8 @@ pthread_cond_init (cond, cond_attr)
      variables are always usable in multiple processes.  */
 
   cond->__data.__lock = LLL_MUTEX_LOCK_INITIALIZER;
+  cond->__data.__nr_wakers = 0;
+  cond->__data.__nr_sleepers = 0;  
 
   return 0;
 }

Attachment: pgp00010.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]