#pragma once #include #include #include #include #include #include #include namespace DB { class DDLWorker { public: DDLWorker(const Poco::Util::AbstractConfiguration & config, const std::string & config_name, Context & context_); ~DDLWorker(); private: void processTasks(); void processCreate(const std::string & path); void run(); private: Context & context; Logger * log = &Logger::get("DDLWorker"); std::string host_task_queue_path; std::atomic stop_flag; std::condition_variable cond_var; std::mutex lock; std::thread thread; }; }