I have the main thread, which calls a function using std:async.
std:async
void fileIO() { while (true) { SomeClass::someStaticFunction(); } } int