# HG changeset patch # User Yoshiki Yazawa # Date 1235762491 -32400 # Node ID 763cf84d2dc7ea55fdd279e1866453f192c96fc4 # Parent c6264c15f39d60b2b8290602e55178333ed330c4 fixed a bug that waited for wrong cond variable diff -r c6264c15f39d -r 763cf84d2dc7 recpt1/recpt1.c --- a/recpt1/recpt1.c Sat Feb 28 00:25:25 2009 +0900 +++ b/recpt1/recpt1.c Sat Feb 28 04:21:31 2009 +0900 @@ -151,7 +151,7 @@ /* wait while queue is empty */ while(p_queue->num_used == 0) { - pthread_cond_timedwait(&p_queue->cond_avail, + pthread_cond_timedwait(&p_queue->cond_used, &p_queue->mutex, &spec); if(f_exit) { pthread_mutex_unlock(&p_queue->mutex);