...

/

User Defined Atomics

User Defined Atomics

This lesson gives an overview of user-defined atomics used from the perspective of concurrency in C++.

There are a lot of deep restrictions on a user-defined type MyType if you use it for an atomic type std::atomic<MyType>. These restrictions are on the type MyType, but also on the operations that std::atomic<MyType> can perform.

Here are the restrictions ...