|
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 485 of file threads_pthread.h.
|
inline |
Definition at line 330 of file threads_tbb.h.
|
inline |
Definition at line 486 of file threads_pthread.h.
|
inline |
Definition at line 192 of file threads_none.h.
|
inline |
Definition at line 517 of file threads_pthread.h.
|
inline |
Definition at line 524 of file threads_pthread.h.
|
inline |
Definition at line 503 of file threads_pthread.h.
|
inline |
Definition at line 531 of file threads_pthread.h.
|
inline |
Definition at line 538 of file threads_pthread.h.
|
inline |
Definition at line 510 of file threads_pthread.h.
|
inline |
Definition at line 488 of file threads_pthread.h.
|
inline |
Definition at line 495 of file threads_pthread.h.
|
private |
Definition at line 194 of file threads_none.h.
Referenced by libMesh::Threads::atomic< unsigned int >::operator unsigned int &().
|
private |
Definition at line 547 of file threads_pthread.h.
Referenced by libMesh::Threads::atomic< unsigned int >::operator++(), libMesh::Threads::atomic< unsigned int >::operator+=(), libMesh::Threads::atomic< unsigned int >::operator--(), libMesh::Threads::atomic< unsigned int >::operator-=(), and libMesh::Threads::atomic< unsigned int >::operator=().
|
private |
Definition at line 546 of file threads_pthread.h.
Referenced by libMesh::Threads::atomic< unsigned int >::operator unsigned int(), libMesh::Threads::atomic< unsigned int >::operator++(), libMesh::Threads::atomic< unsigned int >::operator+=(), libMesh::Threads::atomic< unsigned int >::operator--(), libMesh::Threads::atomic< unsigned int >::operator-=(), and libMesh::Threads::atomic< unsigned int >::operator=().
1.8.14