In message <[email protected]>, "Poul-Henning Kamp" writes: >In message <[email protected]>, Nils Goroll writes: > >>http://varnish-cache.org/changeset/4796 >> >>Once you're at it, it would appear to me that adding differentiated macros for >>load/store/both (AMD64: lfence/sfence/mfence) or even more specific macros >>was >a good idea. > >Only if I need them.
Ok, I just found out that Linux does not expose the various membar macros to userland (there is a proposal for a syscall to do it ??) So I bit the bullet and add the VMB VTLA and put a pthread-compat version in it, since that will be cheaper than a syscall on any OS with a decent pthread implementation. Poul-Henning PS: Please hand me the ability to edit POSIX standards unhindered for just one day, and the world will be a better place, I promise... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [email protected] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. _______________________________________________ varnish-dev mailing list [email protected] http://lists.varnish-cache.org/mailman/listinfo/varnish-dev
