Joedb 10.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
joedb::Writable_Database_Client_Lock Class Reference

#include <joedb/concurrency/Writable_Database_Client.h>

Inheritance diagram for joedb::Writable_Database_Client_Lock:
Collaboration diagram for joedb::Writable_Database_Client_Lock:

Public Member Functions

 Writable_Database_Client_Lock (Writable_Database_Client &client)
const Readable & get_readable () const
Writable & get_writable ()
Public Member Functions inherited from joedb::Client_Lock
 Client_Lock (Writable_Client &client)
 Client_Lock (const Client_Lock &)=delete
Client_Lock & operator= (const Client_Lock &)=delete
void do_checkpoint ()
 Checkpoint current journal, but do not push yet.
void push_if_ahead ()
 Push if the journal checkpoint is ahead of the connection checkpoint.
void checkpoint_and_push ()
 Checkpoint current journal, and push to the connection.
void checkpoint_and_push_unlock ()
 Confirm the transaction right before lock destruction.
void unlock ()
 Cancel the transaction right before lock destruction.
 ~Client_Lock ()
 The destructor unlocks the connection if necessary.

Additional Inherited Members

Protected Attributes inherited from joedb::Client_Lock
Writable_Client & client
const Tail_Exclusive_Lock journal_lock
bool locked

Detailed Description

Definition at line 77 of file Writable_Database_Client.h.

Constructor & Destructor Documentation

◆ Writable_Database_Client_Lock()

joedb::Writable_Database_Client_Lock::Writable_Database_Client_Lock ( Writable_Database_Client & client)
inline

Definition at line 80 of file Writable_Database_Client.h.

Member Function Documentation

◆ get_readable()

const Readable & joedb::Writable_Database_Client_Lock::get_readable ( ) const
inline

Definition at line 85 of file Writable_Database_Client.h.

◆ get_writable()

Writable & joedb::Writable_Database_Client_Lock::get_writable ( )
inline

Definition at line 90 of file Writable_Database_Client.h.


The documentation for this class was generated from the following file: