Minor changes to tests; fix typo; tidy up.

This commit is contained in:
counterpoint
2014-10-03 15:47:03 +01:00
parent 7dc9cf78f6
commit e17607b0d3
4 changed files with 4 additions and 6 deletions

View File

@ -128,7 +128,7 @@ spinlock_release(SPINLOCK *lock)
lock->max_waiting = lock->waiting;
#endif
#ifdef __GNUC__
__sync_synchronize(); // Memory barrier.
__sync_synchronize(); /* Memory barrier. */
lock->lock = 0;
#else
atomic_add(&(lock->lock), -1);