* @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. */
| 54 | * @param lock is a pointer to the spinlock. |
| 55 | */ |
| 56 | void 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. |
no test coverage detected