Boost logo

Boost :

From: Sean Huang (huangsean_at_[hidden])
Date: 2007-09-13 00:24:24


The following code in function_template.hpp has me concerned:

    template<typename Functor>
    void assign_to(Functor f)
    {
      static vtable_type stored_vtable(f);
      if (stored_vtable.assign_to(f, functor)) vtable = &stored_vtable;
      else vtable = 0;
    }

The function scope statics are not thread-safe as far as I know and this is
potentially a show stopper for us (we're in the process of upgrading from
1.33.1 to 1.34+. Same usage in boost.serialization caused our application
(very heavy threaded) to crash.

Is there any plan to fix this? Or I'm wrong and this is not a problem.

Regards,

Sean


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