1//===----------------------------------------------------------------------===//
2// DuckDB
3//
4// duckdb/parallel/base_pipeline_event.hpp
5//
6//
7//===----------------------------------------------------------------------===//
8
9#pragma once
10
11#include "duckdb/parallel/event.hpp"
12#include "duckdb/parallel/pipeline.hpp"
13
14namespace duckdb {
15
16//! A BasePipelineEvent is used as the basis of any event that belongs to a specific pipeline
17class BasePipelineEvent : public Event {
18public:
19 explicit BasePipelineEvent(shared_ptr<Pipeline> pipeline);
20 explicit BasePipelineEvent(Pipeline &pipeline);
21
22 void PrintPipeline() override {
23 pipeline->Print();
24 }
25
26 //! The pipeline that this event belongs to
27 shared_ptr<Pipeline> pipeline;
28};
29
30} // namespace duckdb
31