28 #ifndef WEBSOCKETPP_COMMON_THREAD_HPP 29 #define WEBSOCKETPP_COMMON_THREAD_HPP 31 #include <websocketpp/common/cpp11.hpp> 36 #if defined _WEBSOCKETPP_CPP11_INTERNAL_ && !defined _WEBSOCKETPP_NO_CPP11_THREAD_ 39 #if (!defined(__MINGW32__) && !defined(__MINGW64__)) 40 #ifndef _WEBSOCKETPP_CPP11_THREAD_ 41 #define _WEBSOCKETPP_CPP11_THREAD_ 48 #if defined(_MSC_VER) && _MSC_VER >= 1800
&& !defined _WEBSOCKETPP_NO_CPP11_THREAD_ 49 #ifndef _WEBSOCKETPP_CPP11_THREAD_ 50 #define _WEBSOCKETPP_CPP11_THREAD_ 54 #ifdef _WEBSOCKETPP_CPP11_THREAD_ 57 #include <condition_variable> 59 #include <boost/thread.hpp> 60 #include <boost/thread/mutex.hpp> 61 #include <boost/thread/condition_variable.hpp> 67 #ifdef _WEBSOCKETPP_CPP11_THREAD_ 69 using std::lock_guard;
71 using std::unique_lock;
72 using std::condition_variable;
75 using boost::lock_guard;
77 using boost::unique_lock;
78 using boost::condition_variable;
void handle_accept(connection_ptr con, lib::error_code const &ec)
Handler callback for start_accept.