[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#7969) LMDB: Globally shared fields of meta-data are not 'volatile'.



2014-11-16 0:04 GMT+03:00 Hallvard Breien Furuseth <h.b.furuseth@usit.uio.no>:
> __sync_synchronize() needs an #ifdef around it.
> #ifdef __GNUC__, or something more general?

I have implemented 'portable' memory barriers for a set of compilers.
https://github.com/ReOpen/ReOpenLDAP/commit/a1ec3a4a8290c84846b4e98ff3abf38839381866
Feedback welcomed.

Leonid.