This commit is contained in:
Robert Morris 2016-09-15 12:01:52 -04:00
parent e85cb90cbf
commit 469aa8b9b3

View file

@ -56,7 +56,7 @@ release(struct spinlock *lk)
// past this point, to ensure that all the stores in the critical
// section are visible to other cores before the lock is released.
// Both the C compiler and the hardware may re-order loads and
// stores; __sync_synchronize() tells them both to not re-order.
// stores; __sync_synchronize() tells them both not to.
__sync_synchronize();
// Release the lock, equivalent to lk->locked = 0.