MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / clearAllObjects

Method clearAllObjects

pj_runtime/src/SessionManager.cpp:667–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667void SessionManager::clearAllObjects() {
668 object_store_.clear();
669 // Swap the map into a local under the lock, then let it destruct after the
670 // lock releases — slot dtors may run plugin teardown (dlclose).
671 std::unordered_map<uint32_t, ObjectParserSlot> drained;
672 {
673 std::unique_lock lock(object_parsers_mutex_);
674 drained.swap(object_topic_parsers_);
675 }
676 // drained destructs here, after the lock is released.
677}
678
679} // namespace PJ

Callers 3

TESTFunction · 0.80
MainWindowMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by 1

TESTFunction · 0.64