14 lines
263 B
C++
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;
|
||
|
}
|