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

Function rt_spin_unlock

src/cpu_up.c:56–61  ·  view source on GitHub ↗

* @brief This function will unlock the spinlock, will unlock the thread scheduler. * * @note If the scheduling function is called before unlocking, it will be scheduled in this function. * * @param lock is a pointer to the spinlock. */

Source from the content-addressed store, hash-verified

54 * @param lock is a pointer to the spinlock.
55 */
56void rt_spin_unlock(struct rt_spinlock *lock)
57{
58 rt_base_t critical_level;
59 RT_SPIN_UNLOCK_DEBUG(lock, critical_level);
60 rt_exit_critical_safe(critical_level);
61}
62
63/**
64 * @brief This function will disable the local interrupt and then lock the spinlock, will lock 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_exit_critical_safeFunction · 0.70

Tested by

no test coverage detected