diff options
| author | tyustli <[email protected]> | 2019-07-27 17:33:36 +0800 |
|---|---|---|
| committer | tyustli <[email protected]> | 2019-07-27 17:33:36 +0800 |
| commit | 85a9f5add9fd54b3917cfca2a8555c6525df0538 (patch) | |
| tree | 3f1d642df6ad7a9a158291ef8f5539c0a9374402 /components/cplusplus/Thread.h | |
| parent | 5180262010f5ed76f757125a75d54d37c289d022 (diff) | |
fix bug in Thread.cpp/Thread.h/components.c files
Diffstat (limited to 'components/cplusplus/Thread.h')
| -rw-r--r-- | components/cplusplus/Thread.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/components/cplusplus/Thread.h b/components/cplusplus/Thread.h index 71ee50e1f9..b578659489 100644 --- a/components/cplusplus/Thread.h +++ b/components/cplusplus/Thread.h @@ -45,16 +45,15 @@ public: static void sleep(int32_t millisec); - void wait(int32_t millisec); - void join(int32_t millisec = -1); + rt_err_t wait(int32_t millisec); + rt_err_t join(int32_t millisec = -1); protected: - virtual void run(); + virtual void run(void *parameter); private: static void func(Thread *pThis); -private: rt_thread_t _thread; thread_func_t _entry; |
