#include void foo() { // do stuff... } int main() { std::thread first (foo); first.join(); }
thread thread1(threadFunction);