Undefined ref to 'function<void ()()>::operator()() const' when called from free function defined in cc file.

Paolo Carlini paolo.carlini@oracle.com
Sat Aug 30 11:08:00 GMT 2008


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.



More information about the Libstdc++ mailing list