Go to the source code of this file.
|
class | Threads::Atomic< T > |
|
class | Threads::AtomicPointer< T > |
| Atomic instantiated with a pointer. The class really only handles the casting from a void* to a T*. More...
|
|
class | Threads::SpinLock |
| Is an alternative to Mutex. It is a lock which causes a thread trying to acquire it to simply wait in a loop ("spin") while repeatedly checking if the lock is available. Because they avoid overhead from operating system process re-scheduling or context switching, spinlocks are efficient if threads are only likely to be blocked for a short period. More...
|
|
|
| Threads |
| interface to threads that should be portable.
|
|
#define mAtomicPointerType T* |
#define mImplAtomicPointerOperator |
( |
|
func, |
|
|
|
op, |
|
|
|
ret |
|
) |
| |
Value:template <class T> inline \
T* AtomicPointer<T>::func \
{ \
\
{} \
\
return ret; \
}
#define mAtomicPointerType
Definition: atomic.h:134