|
Boost Users : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2006-06-29 10:41:17
Sigurd Saue wrote:
> We are using boost serialization in our multithreaded application and
> have encountered some problems when multiple threads deserialize the
> same kind of object at the same time.
The same object? - would this be different archives into different objects
or the same archive into different objects from different threads.
It's not clear what is being done here.
> The problems went away when we
> added a global lock prior to the deserialization statement. There
> might be other issues involved so to clarify the situtation: Is boost
> serialization supposed to be thread safe?
>
> Sigurd
The "serial" nature of the process excludes a number of mult-thread
scenarios by definition.I believe that serialization is thread safe in all
contexts where it makes sense to access serialization from different
threads.
Robert Ramey.
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