diff options
| author | weety <[email protected]> | 2017-11-23 11:29:02 +0800 |
|---|---|---|
| committer | weety <[email protected]> | 2017-11-23 11:29:02 +0800 |
| commit | c8e64a629a729596bbccbc6d3af66ca614eb0378 (patch) | |
| tree | a1ac90486370f9b0fbd186c50b8144d9fd098f16 /src/thread.c | |
| parent | af55ad28cf0c20b5ed387050ddcac7a018175e99 (diff) | |
[kernel] Fixed module issue.
Diffstat (limited to 'src/thread.c')
| -rw-r--r-- | src/thread.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/thread.c b/src/thread.c index 50111d9917..c39d689e0f 100644 --- a/src/thread.c +++ b/src/thread.c @@ -185,6 +185,10 @@ static rt_err_t _rt_thread_init(struct rt_thread *thread, 0, RT_TIMER_FLAG_ONE_SHOT); +#ifdef RT_USING_MODULE + thread->module_id = RT_NULL; +#endif + /* initialize signal */ #ifdef RT_USING_SIGNALS thread->sig_mask = 0x00; |
