Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::StorageLock Class Reference
Collaboration diagram for duckdb::StorageLock:

Public Member Functions

unique_ptr< StorageLockKey > GetExclusiveLock ()
 Get an exclusive lock.
unique_ptr< StorageLockKey > GetSharedLock ()
 Get a shared lock.
unique_ptr< StorageLockKey > TryGetExclusiveLock ()
 Try to get an exclusive lock - if we cannot get it immediately we return nullptr.
unique_ptr< StorageLockKey > TryUpgradeCheckpointLock (StorageLockKey &lock)

Private Attributes

shared_ptr< StorageLockInternals > internals

Constructor & Destructor Documentation

◆ StorageLock()

duckdb::StorageLock::StorageLock ( )
426161 : internals(make_shared_ptr<StorageLockInternals>()) {
426162}

◆ ~StorageLock()

duckdb::StorageLock::~StorageLock ( )
426163 {
426164}

Member Function Documentation

◆ GetExclusiveLock()

unique_ptr< StorageLockKey > duckdb::StorageLock::GetExclusiveLock ( )

Get an exclusive lock.

426166 {
426167 return internals->GetExclusiveLock();
426168}

◆ GetSharedLock()

unique_ptr< StorageLockKey > duckdb::StorageLock::GetSharedLock ( )

Get a shared lock.

426174 {
426175 return internals->GetSharedLock();
426176}

◆ TryGetExclusiveLock()

unique_ptr< StorageLockKey > duckdb::StorageLock::TryGetExclusiveLock ( )

Try to get an exclusive lock - if we cannot get it immediately we return nullptr.

426170 {
426171 return internals->TryGetExclusiveLock();
426172}

◆ TryUpgradeCheckpointLock()

unique_ptr< StorageLockKey > duckdb::StorageLock::TryUpgradeCheckpointLock ( StorageLockKey & lock)

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: