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::BatchTaskManager< TASK > Class Template Reference
Collaboration diagram for duckdb::BatchTaskManager< TASK >:

Public Member Functions

void AddTask (unique_ptr< TASK > task)
unique_ptr< TASK > GetTask ()
idx_t TaskCount ()

Private Attributes

mutex task_lock
queue< unique_ptr< TASK > > task_queue
 The task queue for the batch copy to file.

Member Function Documentation

◆ AddTask()

template<class TASK>
void duckdb::BatchTaskManager< TASK >::AddTask ( unique_ptr< TASK > task)
inline
191869 {
191870 lock_guard<mutex> l(task_lock);
191871 task_queue.push(std::move(task));
191872 }
Definition duckdb.cpp:191867
queue< unique_ptr< TASK > > task_queue
The task queue for the batch copy to file.
Definition duckdb.cpp:191892

◆ GetTask()

template<class TASK>
unique_ptr< TASK > duckdb::BatchTaskManager< TASK >::GetTask ( )
inline
191874 {
191875 lock_guard<mutex> l(task_lock);
191876 if (task_queue.empty()) {
191877 return nullptr;
191878 }
191879 auto entry = std::move(task_queue.front());
191880 task_queue.pop();
191881 return entry;
191882 }

◆ TaskCount()

template<class TASK>
idx_t duckdb::BatchTaskManager< TASK >::TaskCount ( )
inline
191884 {
191885 lock_guard<mutex> l(task_lock);
191886 return task_queue.size();
191887 }

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