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