From c507ce3198ea4d822832cc8740f0128df8873c02 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Apr 2013 13:14:44 +0200 Subject: tagging ychat-0.3 --- pool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pool.cpp') diff --git a/pool.cpp b/pool.cpp index a8c1556..470ea24 100755 --- a/pool.cpp +++ b/pool.cpp @@ -197,6 +197,7 @@ pool::tpool_add_work( tpool_t tpool, void(*routine)(void*), void* arg ) /// if( tpool->cur_queue_size == 0 ) { tpool->queue_tail = tpool->queue_head = workp; + pthread_cond_signal( &(tpool->queue_not_empty) ); } else @@ -206,7 +207,6 @@ pool::tpool_add_work( tpool_t tpool, void(*routine)(void*), void* arg ) /// } tpool->cur_queue_size++; - pthread_cond_signal( &(tpool->queue_not_empty) ); pthread_mutex_unlock( &(tpool->queue_lock) ); return 1; } -- cgit v1.2.3