json_spirit package and thread safety

Asked by Marco Matarazzo

Greetings.

Current json_spirit package is compiled without thread safety.

In json_spirit_reader_template.h you can see the line

   //#define BOOST_SPIRIT_THREADSAFE // uncomment for multithreaded use, requires linking to boost.thread

Is there a chance to see this #define uncommented and json_spirit package become tread safe?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu json-spirit Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug.

Revision history for this message
michael (yellupcm-gmail) said :
#2

Have you read this?

Giovanni on January 31, 2015 at 16:27 said:

The json spirit packaged with ubuntu is compiled with thread safety disabled.
You can download the source version and recompile it enabling this define:

json_spirit/json_spirit_reader_template.h:#define BOOST_SPIRIT_THREADSAFE // uncomment for multithreaded use, requires linking to boost.thread

btw, there is a bug report for this:
https://bugs.launchpad.net/ubuntu/+source/json-spirit/+bug/1416679

http://blog.abrok.eu/json-spirit-not-thread-safe-on-ubuntu/

Can you help with this problem?

Provide an answer of your own, or ask Marco Matarazzo for more information if necessary.

To post a message you must log in.