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

Method unsubscribe

include/dmlc/concurrentqueue.h:522–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520 }
521
522 static void unsubscribe(ThreadExitListener* listener)
523 {
524 auto& tlsInst = instance();
525 ThreadExitListener** prev = &tlsInst.tail;
526 for (auto ptr = tlsInst.tail; ptr != nullptr; ptr = ptr->next) {
527 if (ptr == listener) {
528 *prev = ptr->next;
529 break;
530 }
531 prev = &ptr->next;
532 }
533 }
534
535 private:
536 ThreadExitNotifier() : tail(nullptr) { }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected