"Dmitriy V'jukov" <> writes:
> Latest C++0x draft N2723, 2008-08-25:
> "1.9/7
> When the processing of the abstract machine is interrupted by receipt
> of a signal, the values of objects which
> are neither
> — of type volatile std::sig_atomic_t nor
> — lock-free atomic objects (29.2)
> are unspecified, and the value of any object not in either of these
> two categories that is modified by the
> handler becomes undefined."
>
> It looks quite strange. Then what atomic_signal_fence() is all about?
atomic_signal_fence provides ordering for relaxed atomics and volatile
std::sig_atomic_t variables.
Anthony
--
Anthony Williams | Just Software Solutions Ltd
Custom Software Development |
http://www.justsoftwaresolutions.co.uk
Registered in England, Company Number 5478976.
Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL