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

Function rt_spin_lock

src/cpu_up.c:43–47  ·  view source on GitHub ↗

* @brief This function will lock the spinlock, will lock the thread scheduler. * * @note If the spinlock is locked, the current CPU will keep polling the spinlock state * until the spinlock is unlocked. * * @param lock is a pointer to the spinlock. */

Source from the content-addressed store, hash-verified

41 * @param lock is a pointer to the spinlock.
42 */
43void rt_spin_lock(struct rt_spinlock *lock)
44{
45 rt_enter_critical();
46 RT_SPIN_LOCK_DEBUG(lock);
47}
48
49/**
50 * @brief This function will unlock the spinlock, will unlock the thread scheduler.

Callers 15

rt_mutex_drop_threadFunction · 0.70
rt_mutex_setprioceilingFunction · 0.70
rt_mutex_getprioceilingFunction · 0.70
_rt_mutex_takeFunction · 0.70
rt_mutex_releaseFunction · 0.70
rt_event_deleteFunction · 0.70
rt_mb_deleteFunction · 0.70
rt_mq_deleteFunction · 0.70
_futex_lock_piFunction · 0.50
receiver_timeoutFunction · 0.50
utest_getcFunction · 0.50

Calls 1

rt_enter_criticalFunction · 0.70

Tested by

no test coverage detected