Lock acquire and lock release


(Syed Ali Hasan) #1

In the lock acquire and lock release methods there is the following

/* Call this (atomically) before waiting for a lock */
//HANGMAN_WAIT(&curthread->t_hangman, &lock->lk_hangman);

What does atomically mean?


(Geoffrey Challen) #2

Inside the critical section inside of the lock.