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::InterruptDoneSignalState Struct Reference

Synchronization primitive used to await a callback in InterruptMode::BLOCKING. More...

#include <duckdb.hpp>

Public Member Functions

void Signal ()
 Called by the callback to signal the interrupt is over.
void Await ()
 Await the callback signalling the interrupt is over.

Protected Attributes

mutex lock
std::condition_variable cv
bool done = false

Detailed Description

Synchronization primitive used to await a callback in InterruptMode::BLOCKING.

Member Function Documentation

◆ Signal()

void duckdb::InterruptDoneSignalState::Signal ( )

Called by the callback to signal the interrupt is over.

329263 {
329264 {
329265 unique_lock<mutex> lck {lock};
329266 done = true;
329267 }
329268 cv.notify_all();
329269}

◆ Await()

void duckdb::InterruptDoneSignalState::Await ( )

Await the callback signalling the interrupt is over.

329271 {
329272 std::unique_lock<std::mutex> lck(lock);
329273 cv.wait(lck, [&]() { return done; });
329274
329275 // Reset after signal received
329276 done = false;
329277}

The documentation for this struct was generated from the following files: