|
Boost : |
Subject: [boost] [serialization] serialization lib not thread safe?
From: Jean-Marie Auffray (jmauffray_at_[hidden])
Date: 2010-04-12 09:19:24
I use boost serialization in multi threaded application. Sometimes
application crashed.
I manage to avoid bug if I recompile boost serialization
with BOOST_SPIRIT_THREADSAFE defined in jam file :
http://archive.netbsd.se/?ml=boost-build&a=2008-07&t=8023861
But I would like keep boost default installation.
I read multi thread limitations here :
http://www.boost.org/doc/libs/1_42_0/libs/serialization/doc/special.html
But I don't find how to use singleton to avoid crash, I attach test files to
reproduct crash. I use 1.36 in test files, but same bug seems to occure in
next release.
How can I add singleton from serialization to avoid crash? I try some
solutions but failed to find a good implementation.
Thanks for help.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk