lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Mar 20, 2012 at 11:56 AM, Gaspard Bucher <gaspard@teti.ch> wrote:
> Do you know of any portable memory barrier code ? If not, I will use a mutex
> in the Fifo.

i don't think there's any, since each processor architecture has
different barrier and atomic primitives.  I think the closest to
'portable' would be 'available for any x86 compiler', since then you
would use the same primitives.  still, each compiler uses different
syntax, so the best would be liberal use of macros....

-- 
Javier