diff options
| author | Shicheng Chu <[email protected]> | 2023-04-04 21:06:27 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-04 09:06:27 -0400 |
| commit | 93f3cb30e48d5de341bda09fa806120e2bc3f3ad (patch) | |
| tree | b23b2343674fecbc3fdfbcd49220488da21472ed /bsp/simulator | |
| parent | 8a52e65013d1abb7cfc032409000533000ccd0c2 (diff) | |
[kernel] 将rt_thread结构体改为显式继承rt_object (#7131)
Diffstat (limited to 'bsp/simulator')
| -rw-r--r-- | bsp/simulator/drivers/module_win32.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bsp/simulator/drivers/module_win32.c b/bsp/simulator/drivers/module_win32.c index 0f07576964..590aad39bd 100644 --- a/bsp/simulator/drivers/module_win32.c +++ b/bsp/simulator/drivers/module_win32.c @@ -143,7 +143,7 @@ rt_module_t rt_module_self(void) return RT_NULL; /* return current module */ - return (rt_module_t)tid->module_id; + return (rt_module_t)tid->parent.module_id; } RTM_EXPORT(rt_module_self); @@ -319,7 +319,7 @@ rt_module_t rt_module_open(const char *path) module->module_entry)); /* set module id */ - module->module_thread->module_id = (void *)module; + module->module_thread->parent.module_id = (void *)module; module->parent.flag = RT_MODULE_FLAG_WITHENTRY; /* startup module thread */ @@ -520,11 +520,11 @@ rt_module_t rt_module_exec_cmd(const char *path, const char* cmd_line, int line_ 2048, RT_THREAD_PRIORITY_MAX - 2, 10); /* set module id */ - module->module_thread->module_id = (void *)module; + module->module_thread->parent.module_id = (void *)module; module->parent.flag = RT_MODULE_FLAG_WITHENTRY; /* startup module thread */ - rt_thread_startup(module->module_thread); + rt_thread_startup(module->parent.module_thread); } else { |
