Merge pull request #1029 from weety/dev

[kernel] Fixed module issue.
This commit is contained in:
Bernard Xiong 2017-11-24 10:49:16 +08:00 committed by GitHub
commit ecfbfd7c2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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;