Re: [AD] user-defined events

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


On 2008-10-18, Elias Pschernig <elias.pschernig@xxxxxxxxxx> wrote:
> On Sat, 2008-10-18 at 12:33 +1100, 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.
> > 
> 
> Nice. Where do you find such stuff?

The little bit of asm I nicked from libatomic_ops (from Boehm GC)
because gcc inline asm is gibberish to me.  Otherwise I've needed this
stuff before, so knew what to search for :-)

Peter





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