MCPcopy Create free account
hub / github.com/apple/foundationdb / ~ThreadSafeDatabase

Method ~ThreadSafeDatabase

fdbclient/ThreadSafeTransaction.cpp:221–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221ThreadSafeDatabase::~ThreadSafeDatabase() {
222 DatabaseContext* db = this->db;
223 onMainThreadVoid([db]() { db->delref(); });
224}
225
226Reference<ITransaction> ThreadSafeTenant::createTransaction() {
227 auto type = db->isConfigDB ? ISingleThreadTransaction::Type::SIMPLE_CONFIG : ISingleThreadTransaction::Type::RYW;

Callers

nothing calls this directly

Calls 2

onMainThreadVoidFunction · 0.85
delrefMethod · 0.45

Tested by

no test coverage detected