Re: [AD] user-defined events

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


On Friday 17 October 2008, Peter Wang wrote:
> On 2008-10-17, Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx> wrote:
> > On Friday 17 October 2008, Peter Wang wrote:
> > > 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).
> >
> > Not entirely. The main point is to lock stuff between processes and
> > threads afaik. So nothing can happen between the separate events. having
> > more than one cpu changes things a bit, now multiple things CAN happen at
> > once, each cpu can even call one of those functions at the same time. Are
> > those asm ops system global locks? or just cpu local?
>
> Please see http://en.wikipedia.org/wiki/Atomic_operations
> and http://en.wikipedia.org/wiki/Fetch-and-add

Good good. Though the x86 platform doesn't have "perfect" actual atomic ops. 
At least from what I've heard. But Its probably not important.

> Peter
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge Build the coolest Linux based applications with Moblin SDK & win
> great prizes Grand prize is a trip for two to an Open Source event anywhere
> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/


-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx




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