Re: [AD] user-defined events

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


On 2008-10-17, Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx> wrote:
> On Friday 17 October 2008, Peter Wang wrote:
> > On 2008-10-17, Elias Pschernig <elias.pschernig@xxxxxxxxxx> wrote:
> > > That works just as good of course. I don't particulary like the malloc
> > > in al_emit_user_event, but it shouldn't really matter. And I wonder what
> > > to do about __sync_fetch_and_add and __sync_sub_and_fetch for MSVC..
> >
> > Something like this.
> >
> > Peter
> 
> Are we sure this will work with multi core/cpu machines? I'm not sure it will, 
> but I could be confusing that stuff with something else.

That's the whole point of using atomic ops.  Although it's true I
haven't stress tested it on a multi-core machine yet (or at all).

Peter





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