Re: [AD] option to allow SSE instructions

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2009-03-16, AJ <aj@xxxxxxxxxx> wrote:
> 
> Does this mean we can use  InterlockedXX()s also ?
> They'd make things like the threading easier to manage, and reduce that 
> hideous critical section locking (all for a read/write to bool ...  talk 
> about overhead!!!)

Which critical section are you thinking of?

You can use InterlockedXX if it makes sense (at least some atomic ops
were already possible on late 486s).  Generally I think it's not
worthwhile; it's much harder to get right than using mutexes/critical
sections.

Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/