Boost logo

Boost :

Subject: [boost] thread_specific crashes the application when it is in a .so file
From: George Georgiev (george.georgiev.sf_at_[hidden])
Date: 2015-12-02 11:10:50


Hi,

Is there a known issue about boost::thread_specific when a global
thread_specific object is in a .so file?

The exact same code replacing it with thread_local boost::unique_ptr<Foo>
works.

By the way is there a macro that determines is thread_local supported from
the compiler or not?

Thanks,
George


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