Boost logo

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 :
But I would like keep boost default installation.

I read multi thread limitations here :
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, gregod at, cpdaniel at, john at