Made read_json thread-safe.

This commit is contained in:
eidheim 2015-01-10 09:56:35 +01:00
commit 07d43c7311
3 changed files with 3 additions and 1 deletions

View file

@ -15,7 +15,7 @@ else()
endif()
#Only tested with versions 1.55 and 1.56
find_package(Boost 1.41.0 COMPONENTS system REQUIRED)
find_package(Boost 1.41.0 COMPONENTS system thread REQUIRED)
message("Boost include dir: ${Boost_INCLUDE_DIR}")
message("Boost libraries: ${Boost_LIBRARIES}")
include_directories(${Boost_INCLUDE_DIR})

View file

@ -2,6 +2,7 @@
#include "client_http.hpp"
//Added for the json-example
#define BOOST_SPIRIT_THREADSAFE
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>

View file

@ -2,6 +2,7 @@
#include "client_https.hpp"
//Added for the json-example
#define BOOST_SPIRIT_THREADSAFE
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>