Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Kernel Synchronization Support


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.


Typedef Documentation

typedef Arch::AtomicWord Zygoma::AtomicWord
 

An atomic word.


Function Documentation

void Zygoma::atomicAdd volatile AtomicWord mem,
AtomicWord  value
 

Atomically adds value to the value stored at mem, stores result at mem.

This is a forwarding function wrapper for the architecture-specific implementing function.

Parameters:
mem [IN] A pointer to an atomic word in memory which will have its value exchanged with value.
value [IN] An atomic word that will be written at mem.

Here is the call graph for this function:

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.

Parameters:
mem [IN] A pointer to an atomic word in memory which will have its value exchanged with value.
value [IN] An atomic word that will be written at mem.
Returns:
The value originally held at mem.
This is a forwarding function wrapper for the architecture-specific implementing function.

Here is the call graph for this function:

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.

This is a forwarding function wrapper for the architecture-specific implementing function.

Parameters:
mem [IN] A pointer to an atomic word in memory which will have its value exchanged with value.
value [IN] An atomic word that will be written at mem.
Returns:
the sum of value and the value originally held at mem.

Here is the call graph for this function:


Generated on Fri Sep 2 10:45:04 2005 for zygoma by doxygen 1.4.2