* @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 */
| 57 | * - Sets the thread's timer flag (sched_flag_ttmr_set) to indicate timer is active |
| 58 | */ |
| 59 | rt_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 |