aboutsummaryrefslogtreecommitdiff
path: root/src/thread_posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread_posix.c')
-rw-r--r--src/thread_posix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/thread_posix.c b/src/thread_posix.c
index a20bd57..2ed3ab8 100644
--- a/src/thread_posix.c
+++ b/src/thread_posix.c
@@ -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: