[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Multithreading, callbacks from unknown threads [OT]
- From: Javier Guerra Giraldez <javier@...>
- Date: Tue, 20 Mar 2012 12:18:32 -0500
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
- References:
- Multithreading, callbacks from unknown threads, Thijs Schreijer
- Re: Multithreading, callbacks from unknown threads, Javier Guerra Giraldez
- RE: Multithreading, callbacks from unknown threads, Thijs Schreijer
- Re: Multithreading, callbacks from unknown threads, Javier Guerra Giraldez
- RE: Multithreading, callbacks from unknown threads, Thijs Schreijer
- Re: Multithreading, callbacks from unknown threads, Gaspard Bucher
- Re: Multithreading, callbacks from unknown threads [OT], Ross Bencina
- Re: Multithreading, callbacks from unknown threads [OT], Gaspard Bucher
- Re: Multithreading, callbacks from unknown threads [OT], Gaspard Bucher