|
| template<class T > |
| static T | load (volatile const T &val, Order o=Order::seqCst) |
| | Returns val. More...
|
| |
| template<class T > |
| static void | store (volatile T &dst, T newVal, Order o=Order::seqCst) |
| | Assigns dst to newVal. More...
|
| |
| template<class T > |
| static bool | cas (volatile T &dst, T newVal, T cmp, Order o=Order::seqCst) |
| | Compare and swap. If dst is equal to comparand cmp then dst is assigned to newVal and true is returned. Returns false otherwise. More...
|
| |
| template<class T > |
| static T | swap (volatile T &dst, T newVal, Order o=Order::seqCst) |
| | Assigns dst to newVal and returns initial value of dst. More...
|
| |
| template<class T > |
| static T | inc (volatile T &val, Order o=Order::seqCst) |
| | Increments val. Returns the initial value. More...
|
| |
| template<class T > |
| static T | dec (volatile T &val, Order o=Order::seqCst) |
| | Decrements val. Returns the initial value. More...
|
| |
| template<class T > |
| static T | add (volatile T &val, T rhs, Order o=Order::seqCst) |
| | val += rhs. Returns the initial value. More...
|
| |
| template<class T > |
| static T | and_ (volatile T &val, T rhs, Order o=Order::seqCst) |
| | val &= rhs. Returns the initial value. More...
|
| |
| template<class T > |
| static T | or_ (volatile T &val, T rhs, Order o=Order::seqCst) |
| | val |= rhs. Returns the initial value. More...
|
| |
| template<class T > |
| static T | xor_ (volatile T &val, T rhs, Order o=Order::seqCst) |
| | val ^= rhs. Returns the initial value. More...
|
| |
| static void | fence (Order o=Order::seqCst) |
| | Create a memory barrier that synchronizes operations. More...
|
| |
Methods to perform thread-safe atomic read/write operations.