diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:44 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:44 +0200 |
| commit | c507ce3198ea4d822832cc8740f0128df8873c02 (patch) | |
| tree | 260ca004916ae03b7d5438bf89007e3984da6934 /pool.cpp | |
| parent | c8b2ef7b899766d04562f7e04a84251cea8fa701 (diff) | |
tagging ychat-0.3ychat-0.3
Diffstat (limited to 'pool.cpp')
| -rwxr-xr-x | pool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |
