diff options
| author | Rbb666 <[email protected]> | 2025-09-01 15:30:09 +0800 |
|---|---|---|
| committer | R b b666 <[email protected]> | 2025-09-02 16:46:55 +0800 |
| commit | 3c17851fe2316b8cb4434dfe0d6046fcede3b0c7 (patch) | |
| tree | dee22d634e04eb8d34a8a69a8cbb0fc815b2cd0c /include/rtthread.h | |
| parent | f8a37bc42ed754c461bfe9ea02d8638313cb9fe0 (diff) | |
[Add][kernel/thread]Add thread overflow hook and testcases:thread_overflow_tc.c.
Diffstat (limited to 'include/rtthread.h')
| -rw-r--r-- | include/rtthread.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rtthread.h b/include/rtthread.h index 286189ca35..f910cfa1c0 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -239,6 +239,7 @@ void rt_exit_critical_safe(rt_base_t critical_level); rt_uint16_t rt_critical_level(void); #ifdef RT_USING_HOOK +void rt_scheduler_stack_overflow_sethook(rt_err_t (*hook)(struct rt_thread *thread)); void rt_scheduler_sethook(void (*hook)(rt_thread_t from, rt_thread_t to)); void rt_scheduler_switch_sethook(void (*hook)(struct rt_thread *tid)); #endif /* RT_USING_HOOK */ |
