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/a1ec3a4a8290c84846b4e98ff3abf388... Feedback welcomed.
Leonid.