MCPcopy Create free account
hub / github.com/dmlc/dmlc-core / ~ThreadExitNotifier

Method ~ThreadExitNotifier

include/dmlc/concurrentqueue.h:540–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected