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_re2::DFA::RWLocker Class Reference
Collaboration diagram for duckdb_re2::DFA::RWLocker:

Public Member Functions

 RWLocker (CacheMutex *mu)
void LockForWriting ()

Private Member Functions

 RWLocker (const RWLocker &)=delete
RWLocker & operator= (const RWLocker &)=delete

Private Attributes

CacheMutex * mu_
bool writing_

Constructor & Destructor Documentation

◆ RWLocker()

duckdb_re2::DFA::RWLocker::RWLocker ( CacheMutex * mu)
explicit
463497 : mu_(mu), writing_(false) {
463498 mu_->ReaderLock();
463499}

◆ ~RWLocker()

duckdb_re2::DFA::RWLocker::~RWLocker ( )
463511 {
463512 if (!writing_)
463513 mu_->ReaderUnlock();
463514 else
463515 mu_->WriterUnlock();
463516}

Member Function Documentation

◆ LockForWriting()

void duckdb_re2::DFA::RWLocker::LockForWriting ( )
463503 {
463504 if (!writing_) {
463505 mu_->ReaderUnlock();
463506 mu_->WriterLock();
463507 writing_ = true;
463508 }
463509}

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