Boost logo

Boost Users :

From: Ed Hill (ed_at_[hidden])
Date: 2007-10-05 12:18:52


On Fri, 5 Oct 2007 08:29:50 -0700 "Robert Ramey" wrote:

> There are two issues with the serialization library
>
> a) Its not currently thread safe
> b) Serialization code can be duplicated in different shared
> libraries. It's not clear what this implies.
>
> The first is on a path to final solution. It will depend upon the
> existence a thread-safe lazily initialized singleton which will have
> to be provided by the user until boost has such a thing (if that ever
> happens).

Hi Robert,

I'd like to use Boost serialization in threaded applications and
am thrilled to hear that you have a solution in mind.

Are there any (possibly simple?) rules that you could state that would
guarantee thread-safe use with existing Boost serialization versions?

I've run some simple examples using Boost serialization with threads
and it seems to work correctly if all the objects to be serialized and
the serialization streams are owned (write-able) by exactly one thread.
Are there any guarantees that a one-thread-owns-it-all or perhaps some
other approaches are safe with the current implementation?

Many thanks!
Ed

-- 
Edward H. Hill III, PhD  |  ed_at_[hidden]  |  http://eh3.com/



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net