A PipelineEvent is responsible for scheduling a pipeline.
More...
|
|
shared_ptr< Pipeline > | pipeline |
| | The pipeline that this event belongs to.
|
| enable_shared_from_this & | operator= (enable_shared_from_this const &) noexcept |
|
Executor & | executor |
|
atomic< idx_t > | finished_tasks |
| | The current threads working on the event.
|
|
atomic< idx_t > | total_tasks |
| | The maximum amount of threads that can work on the event.
|
| atomic< idx_t > | finished_dependencies |
|
idx_t | total_dependencies |
| | The total amount of dependencies.
|
|
vector< weak_ptr< Event > > | parents |
| | The events that depend on this event to run.
|
|
vector< reference< Event > > | parents_raw |
| | Raw pointers to the parents (used for verification only).
|
|
atomic< bool > | finished |
| | Whether or not the event is finished executing.
|
A PipelineEvent is responsible for scheduling a pipeline.
◆ PipelineEvent()
329930 : BasePipelineEvent(std::move(pipeline_p)) {
329931}
◆ Schedule()
| void duckdb::PipelineEvent::Schedule |
( |
| ) |
|
|
overridevirtual |
Implements duckdb::Event.
329933 {
329934 auto event = shared_from_this();
329935 auto &executor =
pipeline->executor;
329936 try {
329939 } catch (std::exception &ex) {
329940 executor.PushError(ErrorData(ex));
329941 } catch (...) {
329942 executor.PushError(ErrorData("Unknown exception while calling pipeline->Schedule(event)!"));
329943 }
329944}
shared_ptr< Pipeline > pipeline
The pipeline that this event belongs to.
Definition duckdb.cpp:35137
atomic< idx_t > total_tasks
The maximum amount of threads that can work on the event.
Definition duckdb.cpp:35103
◆ FinishEvent()
| void duckdb::PipelineEvent::FinishEvent |
( |
| ) |
|
|
overridevirtual |
Called right after the event is finished.
Reimplemented from duckdb::Event.
The documentation for this class was generated from the following file: