From 7ff2a4c51e63822c7edf0ceae239626172b58dab Mon Sep 17 00:00:00 2001 From: armink Date: Sun, 28 Apr 2019 09:13:24 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=AE=8C=E5=96=84=E3=80=91=E7=BA=BF?= =?UTF-8?q?=E7=A8=8B=E6=B1=A0=E5=88=9D=E5=A7=8B=E5=8C=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: armink --- thread_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thread_pool.c b/thread_pool.c index e263758..bd7aebe 100644 --- a/thread_pool.c +++ b/thread_pool.c @@ -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);