This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Undefined ref to 'function<void ()()>::operator()() const' when called from free function defined in cc file.
Chris Fairles wrote:
Yeah. I'm not a huge fan of this global function<> w/ mutex method (i
could name a few deadlock cases off the top of my head, __f making a
call_once with the same once_flag to name one). I'm not 100% familiar
with GCC's TLS support (other than gthread's get/setspecific) but I'll
definitely take a look.
... if I understand correctly, can be considered as an optimization,
which, therefore, can be worked-out in the detail in a second moment.
Anyway, up to you...
Thanks for the tip (and will make sure to use GLIBCXX_HAVE_TLS)
You are welcome. We have at least an existing use in
libsupc++/eh_globals.cc...
Paolo.