4 std::lock_guard<std::mutex> lock(
m_mutex);
9 std::lock_guard<std::mutex> lock(
m_mutex);
14 std::lock_guard<std::mutex> lock(
m_mutex);
MDBX_txn * thread_txn() const
Retrieves the transaction associated with the current thread.
void bind_txn(MDBX_txn *txn)
Registers a transaction for a specific thread.
std::mutex m_mutex
Protects access to m_thread_txns.
std::unordered_map< std::thread::id, MDBX_txn * > m_thread_txns
Map of thread IDs to transaction pointers.
void unbind_txn()
Unregisters a transaction for a specific thread.