Thread Safe Data Types

I’m looking for a list of known thread safe data types. No specific end goal, more for my information.

The only ones I know of are ‘volatile bool’ and TQueues are thread safe, and while I could just slap anything into a TQueue to get the work done, it feels like a ‘sloppy’ answer and am just curious what else is available to us.

“volatile bool” is thread safe onlu in VisualStudio which is not standard C++ and will have compatability issues.

FThreadSafeBool is the way to go.

1 Like