Files | |
file | spinlock.h |
Kernel synchronization primitives declarations. | |
file | spinlock.cpp |
Kernel synchronization primitives implementation. | |
Classes | |
class | Zygoma::SpinLockMutex |
A MUTual EXclusion object that is lockable via a spinlock. More... | |
class | Zygoma::SpinLock |
A SpinLock. More... | |
Typedefs | |
typedef Arch::AtomicWord | Zygoma::AtomicWord |
An atomic word. | |
Functions | |
AtomicWord | Zygoma::atomicExchange (volatile AtomicWord *mem, AtomicWord value) |
Atomically exchanges the value found at mem with the value passed in as value , returns the original value found at mem . | |
AtomicWord | Zygoma::atomicExchangeAndAdd (volatile AtomicWord *mem, AtomicWord value) |
Atomically sets the value at mem to value , returns the sum of value and the value originally found at mem . | |
void | Zygoma::atomicAdd (volatile AtomicWord *mem, AtomicWord value) |
Atomically adds value to the value stored at mem , stores result at mem . |
|
An atomic word.
|
|
Atomically adds This is a forwarding function wrapper for the architecture-specific implementing function.
Here is the call graph for this function: |
|
Atomically exchanges the value found at
Here is the call graph for this function: |
|
Atomically sets the value at This is a forwarding function wrapper for the architecture-specific implementing function.
Here is the call graph for this function: |