|
From: Peter S. <sei...@ci...> - 2004-04-05 16:57:06
|
Hello, calling pthhread_cond_destroy under valgrind-2.1.2-CVS gives ==3119== warning: Valgrind's pthread_cond_destroy is incomplete ==3119== (it doesn't check if the cond is waited on) ==3119== your program may misbehave as a result The attached patch implements this missing check by counting the number of threads waiting on the specified condition (using 'vg_pthread_cond_t.__vg_c_waiting'). The patch works for me (and the two short testprogramms in the second attachement), hope I didn't miss something... Peter -- ------------------------------------------------------------------------ Peter Seiderer E-Mail: sei...@ci... |