Skip to content

Commit

Permalink
【完善】线程池初始化。
Browse files Browse the repository at this point in the history
Signed-off-by: armink <armink.ztl@gmail.com>
  • Loading branch information
armink committed Apr 28, 2019
1 parent 270f2ed commit 7ff2a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thread_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ thread_pool_err init_thread_pool(thread_pool_t const pool, const char* name, uin
for (i = 0; i < max_thread_num; i++) {
rt_snprintf(job_name, THREAD_POOL_NAME_MAX, "%s_%d", name, i);
pool->thread_id[i] = rt_thread_create(job_name, thread_job, pool, thread_stack_size,
THREAD_POOL_JOB_DEFAULT_PRIORITY, THREAD_POOL_JOB_TICK * i);
THREAD_POOL_JOB_DEFAULT_PRIORITY, THREAD_POOL_JOB_TICK);
RT_ASSERT(pool->thread_id[i] != NULL);
rt_thread_startup(pool->thread_id[i]);
LOG_D("create thread success.Current total thread number is %d", i + 1);
Expand Down

0 comments on commit 7ff2a4c

Please sign in to comment.