diff options
author | Robert Morris <[email protected]> | 2016-09-15 12:01:52 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2016-09-15 12:01:52 -0400 |
commit | 469aa8b9b3b719a9fd13bfe750751ccd878cb206 (patch) | |
tree | a626f7f367f0a0a141017ddadec1b018a437850a | |
parent | e85cb90cbfb4b209066f0136387a2a1a98d890bf (diff) | |
download | xv6-labs-469aa8b9b3b719a9fd13bfe750751ccd878cb206.tar.gz xv6-labs-469aa8b9b3b719a9fd13bfe750751ccd878cb206.tar.bz2 xv6-labs-469aa8b9b3b719a9fd13bfe750751ccd878cb206.zip |
xx
-rw-r--r-- | spinlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |