machine/atmoic.h

2004-02-14 Thread Eirik Nygaard
Hi... I am just wondering what the atomic_* functions in machine/atmoic.h does. I have read the assembly code and more or less understood it, but I still don't see the need for it. So if anyone would enlighten me that would be great. -- Eirik Nygaard [EMAIL PROTECTED]Never let a computer

Re: machine/atmoic.h

2004-02-14 Thread Lev Walkin
Eirik Nygaard wrote: Hi... I am just wondering what the atomic_* functions in machine/atmoic.h does. I have read the assembly code and more or less understood it, but I still don't see the need for it. So if anyone would enlighten me that would be great. Think about parallel threads of execution

Re: machine/atmoic.h

2004-02-14 Thread William M. Grim
to lock a mutex at the same time and both get stuck in a deadlock. This would sorta suck. Eirik Nygaard wrote: Hi... I am just wondering what the atomic_* functions in machine/atmoic.h does. I have read the assembly code and more or less understood it, but I still don't see the need for it. So