38 #include <sys/critical.h> 46 if(*target == old_val) {
static void critical_exit(int_master_status_t status)
Exit a critical section and restore the master interrupt.
static int_master_status_t critical_enter()
Enter a critical section.
INT_MASTER_STATUS_DATATYPE int_master_status_t
Master interrupt state representation data type.
bool atomic_generic_cas_uint8(uint8_t *target, uint8_t old_val, uint8_t new_val)
Atomic compare-and-swap (CAS) on a byte (generic impl.)