| 50 | // but also on bthread with hanging operation. |
| 51 | template <typename T> |
| 52 | inline T* get_leaky_singleton() { |
| 53 | using LeakySingleton = GetLeakySingleton<T>; |
| 54 | bthread_once(LeakySingleton::g_create_leaky_singleton_once, |
| 55 | LeakySingleton::create_leaky_singleton); |
| 56 | return LeakySingleton::_instance; |
| 57 | } |
| 58 | |
| 59 | } // namespace bthread |
| 60 |
nothing calls this directly
no test coverage detected