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::BaseExecutorTask Class Referenceabstract
Inheritance diagram for duckdb::BaseExecutorTask:
Collaboration diagram for duckdb::BaseExecutorTask:

Public Member Functions

 BaseExecutorTask (TaskExecutor &executor)
virtual void ExecuteTask ()=0
TaskExecutionResult Execute (TaskExecutionMode mode) override
Public Member Functions inherited from duckdb::Task
virtual void Deschedule ()
virtual void Reschedule ()
 Ensures a task is rescheduled to the correct queue.
virtual bool TaskBlockedOnResult () const
virtual string TaskType () const
Public Member Functions inherited from duckdb::enable_shared_from_this< Task >
shared_ptr< Task > shared_from_this ()

Protected Attributes

TaskExecutor & executor

Additional Inherited Members

Public Attributes inherited from duckdb::Task
optional_ptr< ProducerToken > token
Protected Member Functions inherited from duckdb::enable_shared_from_this< Task >
enable_shared_from_this & operator= (enable_shared_from_this const &) noexcept

Constructor & Destructor Documentation

◆ BaseExecutorTask()

duckdb::BaseExecutorTask::BaseExecutorTask ( TaskExecutor & executor)
explicit
330742 : executor(executor) {
330743}

Member Function Documentation

◆ Execute()

TaskExecutionResult duckdb::BaseExecutorTask::Execute ( TaskExecutionMode mode)
overridevirtual

Execute the task in the specified execution mode If mode is PROCESS_ALL, Execute should always finish processing and return TASK_FINISHED If mode is PROCESS_PARTIAL, Execute can return TASK_NOT_FINISHED, in which case Execute will be called again In case of an error, TASK_ERROR is returned In case the task has interrupted, BLOCKED is returned.

Implements duckdb::Task.

330745 {
330746 if (executor.HasError()) {
330747 // another task encountered an error - bailout
330748 executor.FinishTask();
330749 return TaskExecutionResult::TASK_FINISHED;
330750 }
330751 try {
330752 {
330753 TaskNotifier task_notifier {executor.context};
330754 ExecuteTask();
330755 }
330756 executor.FinishTask();
330757 return TaskExecutionResult::TASK_FINISHED;
330758 } catch (std::exception &ex) {
330759 executor.PushError(ErrorData(ex));
330760 } catch (...) { // LCOV_EXCL_START
330761 executor.PushError(ErrorData("Unknown exception during Checkpoint!"));
330762 } // LCOV_EXCL_STOP
330763 executor.FinishTask();
330764 return TaskExecutionResult::TASK_ERROR;
330765}
Here is the call graph for this function:

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