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

Function _fast_spin_lock

src/scheduler_mp.c:125–130  ·  view source on GitHub ↗

* Used only on scheduler for optimization of control flows, where the critical * region is already guaranteed. */

Source from the content-addressed store, hash-verified

123 * region is already guaranteed.
124 */
125rt_inline void _fast_spin_lock(struct rt_spinlock *lock)
126{
127 rt_hw_spin_lock(&lock->lock);
128
129 RT_SPIN_LOCK_DEBUG(lock);
130}
131
132rt_inline void _fast_spin_unlock(struct rt_spinlock *lock)
133{

Callers 1

Calls 1

rt_hw_spin_lockFunction · 0.50

Tested by

no test coverage detected