IntrOS
Loading...
Searching...
No Matches
Critical section

masking and unmasking of the interrupts More...

Macros

#define sys_lock()
 save interrupts state then disable interrupts / enter into critical section
#define sys_unlock()
 restore saved interrupts state / exit from critical section

Detailed Description

masking and unmasking of the interrupts

Macro Definition Documentation

◆ sys_lock

#define sys_lock ( )
Value:
do { lck_t __LOCK = core_set_lock()

save interrupts state then disable interrupts / enter into critical section

◆ sys_unlock

#define sys_unlock ( )
Value:
core_put_lock(__LOCK); } while (0)

restore saved interrupts state / exit from critical section