diff options
| author | Rui <[email protected]> | 2024-06-26 23:25:23 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-06-26 23:25:23 +0800 |
| commit | 3b1d4e9222f5a7f3f3d65f90d7fe8de4a9abaf4e (patch) | |
| tree | 310aff7e0e6fa3c82dd7224a4c7c4e421ffe7395 /components/libc/posix/libdl | |
| parent | 071b3d9244f38ba0c032fd3202dba0b3642c859f (diff) | |
fix Compilation error in "driver.c", "completion_up.c", "syslog.c" and "dlmodule.c". (#9093)
Diffstat (limited to 'components/libc/posix/libdl')
| -rw-r--r-- | components/libc/posix/libdl/dlmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/libc/posix/libdl/dlmodule.c b/components/libc/posix/libdl/dlmodule.c index 2679296731..0d05190f7f 100644 --- a/components/libc/posix/libdl/dlmodule.c +++ b/components/libc/posix/libdl/dlmodule.c @@ -128,8 +128,8 @@ static void _dlmodule_exit(void) rt_thread_t thread = (rt_thread_t)object; /* stop timer and suspend thread*/ - if ((thread->stat & RT_THREAD_STAT_MASK) != RT_THREAD_CLOSE && - (thread->stat & RT_THREAD_STAT_MASK) != RT_THREAD_INIT) + if ((RT_SCHED_CTX(thread).stat & RT_THREAD_STAT_MASK) != RT_THREAD_CLOSE && + (RT_SCHED_CTX(thread).stat & RT_THREAD_STAT_MASK) != RT_THREAD_INIT) { rt_timer_stop(&(thread->thread_timer)); rt_thread_suspend(thread); @@ -770,7 +770,7 @@ void dlmodule_exit(int ret_code) /* the stat of module was changed to CLOSING in _dlmodule_exit */ thread = module->main_thread; - if ((thread->stat & RT_THREAD_STAT_MASK) == RT_THREAD_CLOSE) + if ((RT_SCHED_CTX(thread).stat & RT_THREAD_STAT_MASK) == RT_THREAD_CLOSE) { /* main thread already closed */ rt_exit_critical(); |
