Remove whitespace
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user