Collaboration diagram for Atomic Operations:
|
All zygoma ports MUST provide these functions.
Typedefs | |
| typedef int | Zygoma::ia32::AtomicWord |
| A platform-specific atomically-addressable value. | |
Functions | |
| AtomicWord | Zygoma::ia32::atomicExchange (volatile AtomicWord *mem, int value) |
| Atomically exchanges the value found at "mem" with the value passed in as "value," returns the original value found at "mem". | |
| AtomicWord | Zygoma::ia32::atomicExchangeAndAdd (volatile AtomicWord *mem, int value) |
| Atomically sets the value at "mem" to "value," returns the sum of "value" and the value originally found at "mem". | |
| void | Zygoma::ia32::atomicAdd (volatile AtomicWord *mem, int value) |
| Atomically adds "value" to the value stored at "mem," stores result at "mem. | |
|
|
A platform-specific atomically-addressable value. Not all operations on this value are guaranteed to be atomic, but those operations that are atomic work on values of this type. |
|
||||||||||||
|
Atomically adds "value" to the value stored at "mem," stores result at "mem. "
|
|
||||||||||||
|
Atomically exchanges the value found at "mem" with the value passed in as "value," returns the original value found at "mem".
|
|
||||||||||||
|
Atomically sets the value at "mem" to "value," returns the sum of "value" and the value originally found at "mem".
|
1.4.2