From: Branko Èibej (branko.cibej_at_[hidden])
Date: 2000-06-09 04:06:35
John Maddock wrote:
> >No, you need an atomic operation to do "lock.data = 0", so you've
> >again got a function call (or inline assembly -- completely off the
> >rails of defined behaviour).
> At least on intel, all aligned writes are atomic, there is no need for
> assember in this case.
What about SMP? Think cache synchronization ...
-- Branko Èibej <branko.cibej_at_[hidden]> HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia voice: (+386 1) 586 53 49 fax: (+386 1) 586 52 70
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk