diff options
Diffstat (limited to 'src/thread.c')
| -rw-r--r-- | src/thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread.c b/src/thread.c index 9620085..645dd0b 100644 --- a/src/thread.c +++ b/src/thread.c @@ -209,10 +209,10 @@ void bh_thread_pool_worker(void *arg) task->flags |= BH_THREAD_DONE; if (task->flags & BH_THREAD_CLEANUP) bh_task_free(task); - + bh_mutex_lock(&pool->lock); pool->active--; - + bh_mutex_unlock(&pool->lock); bh_cond_broadcast(&pool->done_task); } |
