diff options
| author | Rbb666 <[email protected]> | 2025-08-28 19:10:16 +0800 |
|---|---|---|
| committer | R b b666 <[email protected]> | 2025-08-30 13:10:14 +0800 |
| commit | bc4c0369420be58a8b0d5378f3238a14df7ff57e (patch) | |
| tree | 090c9b813e86a8187ebfc47f6161a817baf39c71 /include/rtthread.h | |
| parent | 1e34830f6d24346239ee9426e0f404d8afd6fc98 (diff) | |
[Add][kservice]Add thread usage support.
Diffstat (limited to 'include/rtthread.h')
| -rw-r--r-- | include/rtthread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/rtthread.h b/include/rtthread.h index d9b582ab1e..286189ca35 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -181,6 +181,9 @@ rt_err_t rt_thread_wakeup(rt_thread_t thread); void rt_thread_wakeup_set(struct rt_thread *thread, rt_wakeup_func_t func, void* user_data); #endif /* RT_USING_SMART */ rt_err_t rt_thread_get_name(rt_thread_t thread, char *name, rt_uint8_t name_size); +#ifdef RT_USING_CPU_USAGE_TRACER +rt_uint8_t rt_thread_get_usage(rt_thread_t thread); +#endif /* RT_USING_CPU_USAGE_TRACER */ #ifdef RT_USING_SIGNALS void rt_thread_alloc_sig(rt_thread_t tid); void rt_thread_free_sig(rt_thread_t tid); |
