Joedb 9.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Journal_Construction_Lock.cpp
Go to the documentation of this file.
2
3namespace joedb
4{
5 ////////////////////////////////////////////////////////////////////////////
7 ////////////////////////////////////////////////////////////////////////////
8 (
9 Buffered_File &file,
10 bool ignore_errors
11 ):
12 file(file),
13 ignore_errors(ignore_errors),
14 size(file.get_size())
15 {
16 if (file.is_readonly())
18 else
19 {
20 if (file.is_shared())
23 }
24 }
25
26 ////////////////////////////////////////////////////////////////////////////
28 ////////////////////////////////////////////////////////////////////////////
29 {
31 if (file.is_shared())
33 }
34}
bool is_shared() const noexcept
void unlock_head() noexcept
bool is_readonly() const noexcept
void unlock_tail() noexcept
Journal_Construction_Lock(Buffered_File &file, bool ignore_errors=false)
Definition Blob.h:7