| 538 | ThreadExitNotifier& operator=(ThreadExitNotifier const&) MOODYCAMEL_DELETE_FUNCTION; |
| 539 | |
| 540 | ~ThreadExitNotifier() |
| 541 | { |
| 542 | // This thread is about to exit, let everyone know! |
| 543 | assert(this == &instance() && "If this assert fails, you likely have a buggy compiler! Change the preprocessor conditions such that MOODYCAMEL_CPP11_THREAD_LOCAL_SUPPORTED is no longer defined."); |
| 544 | for (auto ptr = tail; ptr != nullptr; ptr = ptr->next) { |
| 545 | ptr->callback(ptr->userData); |
| 546 | } |
| 547 | } |
| 548 | |
| 549 | // Thread-local |
| 550 | static inline ThreadExitNotifier& instance() |
nothing calls this directly
no outgoing calls
no test coverage detected