From 759848122e47775cfd8a0e9e3e7a2fa7189754c4 Mon Sep 17 00:00:00 2001 From: mulan <43946994+tyustli@users.noreply.github.com> Date: Tue, 25 Jun 2019 16:14:58 +0800 Subject: [PATCH] Update Thread.cpp --- components/cplusplus/Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/cplusplus/Thread.cpp b/components/cplusplus/Thread.cpp index 26043a3581..9b2a2ad5e0 100644 --- a/components/cplusplus/Thread.cpp +++ b/components/cplusplus/Thread.cpp @@ -37,7 +37,7 @@ Thread::Thread(void (*entry)(void *p), rt_event_init(&_event, name, 0); _thread = rt_thread_create(name, - (thread_func_t)entry, + (thread_func_t)func, this, stack_size, priority,