Skip to content

Commit 8752687

Browse files
committed
Merge pull request XRPLF#339 from jefferai/master
Add define to allow disabling threading entirely
2 parents edb26d7 + 0f3a36a commit 8752687

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

websocketpp/config/core_client.hpp

+8
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@
3434
#include <websocketpp/common/stdint.hpp>
3535

3636
// Concurrency
37+
#ifndef _WEBSOCKETPP_NO_THREADING_
3738
#include <websocketpp/concurrency/basic.hpp>
39+
#else
40+
#include <websocketpp/concurrency/none.hpp>
41+
#endif
3842

3943
// Transport
4044
#include <websocketpp/transport/iostream/endpoint.hpp>
@@ -68,7 +72,11 @@ struct core_client {
6872
typedef core_client type;
6973

7074
// Concurrency policy
75+
#ifndef _WEBSOCKETPP_NO_THREADING_
7176
typedef websocketpp::concurrency::basic concurrency_type;
77+
#else
78+
typedef websocketpp::concurrency::none concurrency_type;
79+
#endif
7280

7381
// HTTP Parser Policies
7482
typedef http::parser::request request_type;

0 commit comments

Comments
 (0)