diff options
author | Richard Braun <rbraun@sceen.net> | 2012-12-10 21:57:08 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2012-12-10 21:57:08 +0100 |
commit | e03c74ab431ed86c0c6260959ccf1d4900f5bdd5 (patch) | |
tree | b442bf764a1b21bb558d0e510e390ce6946fa8b5 /kern/spinlock.h | |
parent | d0332ef5368d5398e02803698fdd7f1a2e8ef494 (diff) |
kern/spinlock: describe implied memory barriers
Diffstat (limited to 'kern/spinlock.h')
-rw-r--r-- | kern/spinlock.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kern/spinlock.h b/kern/spinlock.h index 2767d99..ba8b3a8 100644 --- a/kern/spinlock.h +++ b/kern/spinlock.h @@ -18,7 +18,9 @@ * Spin lock. * * This implementation relies on the availability of hardware compare-and-swap - * support. + * support. It also means that almost all spinlock operations imply a full + * memory barrier. While this can be optimized by relying on architecture + * specific properties, focus on correctness for the time being. */ #ifndef _KERN_SPINLOCK_H |