Boost logo

Boost :

From: stas garifulin (s.garifulin_at_[hidden])
Date: 2005-01-17 05:14:36


I'm using vc71 with multi-threaded runtime.
Sometimes then boost::spirit code is accessed from different threads
simultaneously i have access violation at
boost/spirit/core/non_terminal/impl/grammar.ipp (255):

# ifdef BOOST_SPIRIT_THREADSAFE
        static boost::thread_specific_ptr<ptr_t> tld_helper; // <-- Here
        if (!tld_helper.get())
            tld_helper.reset(new ptr_t);
        ptr_t &helper = *tld_helper;
# else

According to callstack "tss_data" from threads/src/tss.cpp is
dereferenced then it still is not initialized.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk