https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66146
--- Comment #16 from Anthony Williams <anthony.ajw at gmail dot com> --- Would it be worth ignoring pthread_once and using an implementation of call_once based on Mike Burrows' algorithm? http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2444.html