MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / drop

Method drop

rust/src/headless.rs:457–463  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

455
456impl Drop for Session {
457 fn drop(&mut self) {
458 let previous_count = SESSION_COUNT.fetch_sub(1, SeqCst);
459 if previous_count == 1 {
460 // We were the last session, therefor we can safely shut down.
461 shutdown();
462 }
463 }
464}

Callers

nothing calls this directly

Calls 1

shutdownFunction · 0.70

Tested by

no test coverage detected