diff options
| author | 孙冬梅 <[email protected]> | 2018-03-10 18:33:45 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-03-10 18:33:45 +0800 |
| commit | 6e987b2350badd1777454b7324fc88d3275407d6 (patch) | |
| tree | 1bbd5fc2cdaff0719d76122c91e0e736bf3f8116 /components/cplusplus/Thread.cpp | |
| parent | 351f15be4bdf575789be2e1d74934e830bd60554 (diff) | |
| parent | 5534bab89ee767757a451b2efeb5341c1fb74872 (diff) | |
Merge pull request #2 from RT-Thread/master
update form origin
Diffstat (limited to 'components/cplusplus/Thread.cpp')
| -rw-r--r-- | components/cplusplus/Thread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/cplusplus/Thread.cpp b/components/cplusplus/Thread.cpp index 4d2d8a59ea..a01bd95e4b 100644 --- a/components/cplusplus/Thread.cpp +++ b/components/cplusplus/Thread.cpp @@ -6,7 +6,7 @@ Thread::Thread(rt_uint32_t stack_size, rt_uint8_t priority, rt_uint32_t tick, const char *name) -: _entry(RT_NULL), started(false) +: _entry(RT_NULL), _param(RT_NULL), started(false) { rt_event_init(&_event, name, 0); @@ -24,7 +24,7 @@ Thread::Thread(void (*entry)(void *p), rt_uint8_t priority, rt_uint32_t tick, const char *name) -: _entry(RT_NULL), started(false), _param(p) +: _entry(RT_NULL), _param(p), started(false) { rt_event_init(&_event, name, 0); |
