Remove whitespace

This commit is contained in:
2024-04-14 22:38:00 +03:00
parent a645a201d8
commit ec499b6cfc
4 changed files with 24 additions and 24 deletions

View File

@@ -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);
}

View File

@@ -13,7 +13,7 @@ static void *bh_thread_run(void *arg)
if (task->flags & BH_THREAD_CLEANUP)
bh_task_free(task);
return NULL;
}
@@ -119,7 +119,7 @@ int bh_thread_pool_init(bh_thread_pool_t *pool,
if (bh_cond_init(&pool->new_task))
goto task_fail;
if (bh_cond_init(&pool->done_task))
goto done_fail;
@@ -134,7 +134,7 @@ int bh_thread_pool_init(bh_thread_pool_t *pool,
bh_queue_init(&pool->tasks);
if (bh_queue_reserve(&pool->tasks, 64))
goto queue_fail;
/* Initialize threads */
for (i = 0; i < size; i++)
{
@@ -149,7 +149,7 @@ int bh_thread_pool_init(bh_thread_pool_t *pool,
goto queue_fail;
}
}
return 0;
queue_fail: