MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / sys_rt_timer_delete

Function sys_rt_timer_delete

components/lwp/lwp_syscall.c:2918–2921  ·  view source on GitHub ↗

* @brief Deletes a timer. * * This system call deletes the specified timer and releases any resources * associated with it. Once the timer is deleted, its handle becomes invalid, * and any further operations on the timer should be avoided. * * @param[in] timer The handle to the timer to be deleted. Must be a valid `rt_timer_t` object. * * @return sysret_t Returns a status code indicating

Source from the content-addressed store, hash-verified

2916 * if the timer is in the middle of triggering or executing its callback.
2917 */
2918sysret_t sys_rt_timer_delete(rt_timer_t timer)
2919{
2920 return lwp_user_object_delete(lwp_self(), (rt_object_t)timer);
2921}
2922
2923/**
2924 * @brief Starts a timer.

Callers

nothing calls this directly

Calls 2

lwp_user_object_deleteFunction · 0.85
lwp_selfFunction · 0.85

Tested by

no test coverage detected