Open main menu

CDOT Wiki β

Changes

Atomic Operation

3 bytes added, 10:18, 20 January 2014
no edit summary
if (lock == 0) {
lock++;
/* Perform exclusive action */
lock--;
} else {
abort();
}