I found myself needing a threadsafe global variable to indicate when a thread is complete.
Quickly discovered std::atomic<type> var(val);
only to find it has no support in my IDE.
Can anyone offer an alternative?
I have an operation that needs to be carried out which takes some time, I cannot afford that time in current thread and want to subcontract the work to another thread.
I'm going to be using global variable(s) (not sure if I can use static) to which the thread can deposit the result(s).
And of course I need a safe way to know when the spawned thread is complete.
Thank you for taking time to read.