结构体 | |
struct | aos_spinlock_t |
类型定义 | |
typedef long | aos_irqsave_t |
函数 | |
void | aos_spin_lock_init (aos_spinlock_t *spinlock) |
void | aos_spin_lock (aos_spinlock_t *spinlock) |
void | aos_spin_unlock (aos_spinlock_t *spinlock) |
aos_irqsave_t | aos_spin_lock_irqsave (aos_spinlock_t *spinlock) |
void | aos_spin_unlock_irqrestore (aos_spinlock_t *spinlock, aos_irqsave_t flag) |
提供AliOS Things系统内核自旋锁功能的基础API.
typedef long aos_irqsave_t |
void aos_spin_lock | ( | aos_spinlock_t * | spinlock | ) |
Lock a spinlock.
[in] | spinlock | spinlock object. |
void aos_spin_lock_init | ( | aos_spinlock_t * | spinlock | ) |
Init a spinlock.
[in] | spinlock | pointer of spinlock object,spinlock object must be alloced. |
aos_irqsave_t aos_spin_lock_irqsave | ( | aos_spinlock_t * | spinlock | ) |
Lock a spinlock in ISR.
[in] | spinlock | spinlock object. |
void aos_spin_unlock | ( | aos_spinlock_t * | spinlock | ) |
Unlock a spinlock.
[in] | spinlock | spinlock object. |
void aos_spin_unlock_irqrestore | ( | aos_spinlock_t * | spinlock, |
aos_irqsave_t | flag | ||
) |
Unlock a spinlock in ISR.
[in] | spinlock | spinlock object. |
[in] | flag | CPSR value. |