Explorar o código

Update Thread.cpp

mulan %!s(int64=5) %!d(string=hai) anos
pai
achega
759848122e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,