Boost logo

Boost :

Subject: Re: [boost] [serialization] serialization lib not thread safe?
From: Robert Ramey (ramey_at_[hidden])
Date: 2010-04-13 12:16:24


Hmmm this is a surprise to me as I have gone to some trouble to make the
library thread-safe. I'll look into it.

Robert Ramey

Jean-Marie Auffray wrote:
>> 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.
>>
>
>
>
>> _______________________________________________
>> Unsubscribe & other changes:
>> http://lists.boost.org/mailman/listinfo.cgi/boost


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