c-resources/CPlusPlus20ForProgrammers-m.../examples/libraries/concurrencpp/sandbox/main.cpp

14 lines
263 B
C++

#include "concurrencpp/concurrencpp.h"
#include <iostream>
int main() {
concurrencpp::runtime runtime;
auto result = runtime.thread_pool_executor()->submit([] {
std::cout << "hello world" << std::endl;
});
result.get();
return 0;
}