|
Boost : |
From: Sean Huang (huangsean_at_[hidden])
Date: 2005-10-11 10:52:54
There are many places in serialization library that use a pattern like the
following:
static oserializer & instantiate(){
static oserializer instance;
return instance;
}
AFAIK, not all compilers guarantee the initialization of a function level
(or class member level) static variable is thread-safe. If I understand the
code correctly, this essentially means that simultaneously serializing
objects of the same type is not thread-safe. Am I missing something here?
Thanks,
Sean
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk