浏览代码

Update Thread.cpp

mulan 5 年之前
父节点
当前提交
759848122e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/cplusplus/Thread.cpp

+ 1 - 1
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,