MCPcopy Index your code
hub / github.com/RT-Thread/rt-thread / _timerlock_idx

Function _timerlock_idx

src/timer.c:96–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94#endif /* RT_USING_HOOK */
95
96rt_inline struct rt_spinlock* _timerlock_idx(struct rt_timer *timer)
97{
98#ifdef RT_USING_TIMER_ALL_SOFT
99 return &_stimer_lock;
100#else
101#ifdef RT_USING_TIMER_SOFT
102 if (timer->parent.flag & RT_TIMER_FLAG_SOFT_TIMER)
103 {
104 return &_stimer_lock;
105 }
106 else
107#endif /* RT_USING_TIMER_SOFT */
108 {
109 return &_htimer_lock;
110 }
111#endif
112}
113
114/**
115 * @brief [internal] The init funtion of timer

Callers 4

rt_timer_detachFunction · 0.85
rt_timer_deleteFunction · 0.85
rt_timer_stopFunction · 0.85
rt_timer_controlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected