You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arabica is not thread safe even when used with objects that aren't shared. The problem lies in the boost Spirit classic Api which can't be used safely in multi threading environments (see https://svn.boost.org/trac/boost/ticket/5520). The problem can be easily reproduced by creating several threads which either compile Xpath expressions or parse XML in distinct objects. It seems that only switching to Boost Spirit V2 solves the problem.
The text was updated successfully, but these errors were encountered:
It's easy to fix by adding BOOST_SPIRIT_THREADSAFE before inclusion of arabica headers (See "Reentrancy and multithreading" at http://www.boost.org/doc/libs/1_35_0/libs/spirit/doc/grammar.html). This will require that Boost.Thread should be linked in addition to other libraries...
P.S. Andre - we can discuss this after I back to work :-)
I think I can make the necessary changes in the configure script - I'll work up the changes when I get the chance - but it sounds like you can handle it locally until whenever that is.
Arabica is not thread safe even when used with objects that aren't shared. The problem lies in the boost Spirit classic Api which can't be used safely in multi threading environments (see https://svn.boost.org/trac/boost/ticket/5520). The problem can be easily reproduced by creating several threads which either compile Xpath expressions or parse XML in distinct objects. It seems that only switching to Boost Spirit V2 solves the problem.
The text was updated successfully, but these errors were encountered: