Joedb 9.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Public Member Functions | List of all members
joedb::Writable_Database_Client_Lock Class Reference

#include <joedb/concurrency/Writable_Database_Client.h>

Inheritance diagram for joedb::Writable_Database_Client_Lock:
Inheritance graph
[legend]
Collaboration diagram for joedb::Writable_Database_Client_Lock:
Collaboration graph
[legend]

Public Member Functions

 Writable_Database_Client_Lock (Writable_Database_Client &client)
 
const Readableget_readable () const
 
Writableget_writable ()
 
- Public Member Functions inherited from joedb::Client_Lock
 Client_Lock (Writable_Client &client)
 
 Client_Lock (const Client_Lock &)=delete
 
Client_Lockoperator= (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_Clientclient
 
const Journal_Lock journal_lock
 
bool locked
 

Detailed Description

Definition at line 69 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 72 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 77 of file Writable_Database_Client.h.

◆ get_writable()

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

Definition at line 82 of file Writable_Database_Client.h.


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