Boost logo

Boost :

From: Gabriel Dos Reis (Gabriel.Dos-Reis_at_[hidden])
Date: 1999-12-28 19:37:27

scleary_at_[hidden] writes:

| > I recall a convincing presentation to the committee
| > that you can't trust library-based threading because
| > optimizers might reorder operations around the library
| > calls. That might be what Bjarne was referring to.
| >
| But we do have language support -- 'volatile' introduces sequence points
| (1.9p7), so I would assume that it would be possible to write such a library
| that the compiler could not reorder.


Portable libraries best avoid 'volatile'.

-- Gaby

Boost list run by bdawes at, gregod at, cpdaniel at, john at