◆ StorageLock()
| duckdb::StorageLock::StorageLock |
( |
| ) |
|
426161 : internals(make_shared_ptr<StorageLockInternals>()) {
426162}
◆ ~StorageLock()
| duckdb::StorageLock::~StorageLock |
( |
| ) |
|
◆ GetExclusiveLock()
Get an exclusive lock.
426166 {
426167 return internals->GetExclusiveLock();
426168}
◆ GetSharedLock()
Get a shared lock.
426174 {
426175 return internals->GetSharedLock();
426176}
◆ TryGetExclusiveLock()
Try to get an exclusive lock - if we cannot get it immediately we return nullptr.
426170 {
426171 return internals->TryGetExclusiveLock();
426172}
◆ TryUpgradeCheckpointLock()
This is a special method that only exists for checkpointing This method takes a shared lock, and returns an exclusive lock if the parameter is the only active shared lock If this method succeeds, we have both a shared and exclusive lock active (which normally is not allowed) But this behavior is required for checkpointing
426178 {
426179 return internals->TryUpgradeCheckpointLock(lock);
426180}
The documentation for this class was generated from the following files: