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

Function rt_sched_thread_timer_start

src/scheduler_comm.c:59–64  ·  view source on GitHub ↗

* @brief Start the thread timer for scheduling * * @param thread The thread whose timer needs to be started * * @return rt_err_t Always returns RT_EOK on success * * @details This function: * - Requires scheduler lock to be held. * - Sets the thread's timer flag (sched_flag_ttmr_set) to indicate timer is active */

Source from the content-addressed store, hash-verified

57 * - Sets the thread's timer flag (sched_flag_ttmr_set) to indicate timer is active
58 */
59rt_err_t rt_sched_thread_timer_start(struct rt_thread *thread)
60{
61 RT_SCHED_DEBUG_IS_LOCKED;
62 RT_SCHED_CTX(thread).sched_flag_ttmr_set = 1;
63 return RT_EOK;
64}
65
66/**
67 * @brief Stop the thread timer for scheduling

Callers 1

rt_timer_startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected