|
libMesh
|
Defines atomic operations which can only be executed on a single thread at a time. More...
#include <threads_none.h>
Public Member Functions | |
| atomic () | |
| operator T& () | |
| atomic () | |
| operator T () | |
| T | operator= (T value) |
| atomic< T > & | operator= (const atomic< T > &value) |
| T | operator+= (T value) |
| T | operator-= (T value) |
| T | operator++ () |
| T | operator++ (int) |
| T | operator-- () |
| T | operator-- (int) |
| atomic () | |
Private Attributes | |
| T | _val |
| T | val |
| spin_mutex | smutex |
Defines atomic operations which can only be executed on a single thread at a time.
This is used in reference counting, for example, to allow count++/count– to work.
Legacy TBB: inherits tbb::atomic<T>. oneTBB: tbb::atomic was removed; inherits std::atomic<T> instead.
Definition at line 188 of file threads_none.h.
|
inline |
Definition at line 191 of file threads_none.h.
|
inline |
Definition at line 498 of file threads_pthread.h.
|
inline |
Definition at line 330 of file threads_tbb.h.
|
inline |
|
inline |
|
inline |
Definition at line 530 of file threads_pthread.h.
References libMesh::Threads::atomic< T >::smutex, and libMesh::Threads::atomic< T >::val.
|
inline |
Definition at line 537 of file threads_pthread.h.
References libMesh::Threads::atomic< T >::smutex, and libMesh::Threads::atomic< T >::val.
|
inline |
Definition at line 516 of file threads_pthread.h.
References libMesh::Threads::atomic< T >::smutex, libMesh::Threads::atomic< T >::val, and value.
|
inline |
Definition at line 544 of file threads_pthread.h.
References libMesh::Threads::atomic< T >::smutex, and libMesh::Threads::atomic< T >::val.
|
inline |
Definition at line 551 of file threads_pthread.h.
References libMesh::Threads::atomic< T >::smutex, and libMesh::Threads::atomic< T >::val.
|
inline |
Definition at line 523 of file threads_pthread.h.
References libMesh::Threads::atomic< T >::smutex, libMesh::Threads::atomic< T >::val, and value.
|
inline |
Definition at line 508 of file threads_pthread.h.
References libMesh::Threads::atomic< T >::smutex, libMesh::Threads::atomic< T >::val, and value.
|
inline |
Definition at line 501 of file threads_pthread.h.
References libMesh::Threads::atomic< T >::smutex, libMesh::Threads::atomic< T >::val, and value.
|
private |
Definition at line 194 of file threads_none.h.
Referenced by libMesh::Threads::atomic< T >::operator T&().
|
private |
Definition at line 560 of file threads_pthread.h.
Referenced by libMesh::Threads::atomic< T >::operator++(), libMesh::Threads::atomic< T >::operator++(), libMesh::Threads::atomic< T >::operator+=(), libMesh::Threads::atomic< T >::operator--(), libMesh::Threads::atomic< T >::operator--(), libMesh::Threads::atomic< T >::operator-=(), libMesh::Threads::atomic< T >::operator=(), and libMesh::Threads::atomic< T >::operator=().
|
private |
Definition at line 559 of file threads_pthread.h.
Referenced by libMesh::Threads::atomic< T >::operator T(), libMesh::Threads::atomic< T >::operator++(), libMesh::Threads::atomic< T >::operator++(), libMesh::Threads::atomic< T >::operator+=(), libMesh::Threads::atomic< T >::operator--(), libMesh::Threads::atomic< T >::operator--(), libMesh::Threads::atomic< T >::operator-=(), libMesh::Threads::atomic< T >::operator=(), and libMesh::Threads::atomic< T >::operator=().