|
Boost : |
From: Martin Wille (mw8329_at_[hidden])
Date: 2005-08-10 00:53:52
Timothy Ritchey wrote:
> We are using shared_ptr extensively in our application, and seem to
> be having some threading issues. In particular, we have an Envelope
> class that is used to hold messages received over the network. We use
> Spirit to parse the message string and construct the Envelope object,
Your problems might be caused by Spirit. Quite recently, a bug was fixed
that causes an internal structure of Spirit to be initialized in a
thread unsafe manner. The fixed code will get released very soon with
Boost 1.33 and also with the standalone Spirit package.
You also should #define BOOST_SPIRIT_THREADSAFE as described in the
grammar section of Spirit's documentation.
HTH,
m
Send instant messages to your online friends http://au.messenger.yahoo.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk