#include "server.h" #include #include #ifdef WIN32 /* hachish fix for mingw builds */ namespace boost { void tss_cleanup_implemented() { } } #endif int main(int argc, char **argv) { boost::asio::io_service io_service; Server server(io_service); std::size_t num_threads = 1; std::vector > threads; for(std::size_t i = 0; i < num_threads; i++) { boost::shared_ptr thread(new boost::thread(boost::bind(&boost::asio::io_service::run, &io_service))); threads.push_back(thread); } for(std::size_t i = 0; i < num_threads; i++) { threads[i]->join(); } return 0; }