소스 검색

Update Thread.cpp

mulan 6 년 전
부모
커밋
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,