#include #include #include #include #ifndef _WIN32 #include #endif int main() { std::atomic flag(false); { trantor::EventLoopThread thr; thr.getLoop()->runOnQuit([&]() { flag = true; }); thr.run(); thr.getLoop()->quit(); } if (flag == false) { std::cerr << "Test failed\n"; } else { std::cout << "Success\n"; } }