From 3c17851fe2316b8cb4434dfe0d6046fcede3b0c7 Mon Sep 17 00:00:00 2001 From: Rbb666 Date: Mon, 1 Sep 2025 15:30:09 +0800 Subject: [Add][kernel/thread]Add thread overflow hook and testcases:thread_overflow_tc.c. --- include/rtthread.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/rtthread.h') 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 */ -- cgit v1.3.1