Skip to content

Commit

Permalink
xx
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Morris committed Sep 15, 2016
1 parent e85cb90 commit 469aa8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spinlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 469aa8b

Please sign in to comment.