From 580e648147831eac4ee3a9344b12aa5c3f0acf7a Mon Sep 17 00:00:00 2001 From: ArthurSonzogni Date: Thu, 26 Mar 2020 23:16:36 +0100 Subject: [PATCH] Remove the pipe class. --- src/ftxui/component/pipe.hpp | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 src/ftxui/component/pipe.hpp diff --git a/src/ftxui/component/pipe.hpp b/src/ftxui/component/pipe.hpp deleted file mode 100644 index 71bb653..0000000 --- a/src/ftxui/component/pipe.hpp +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef FTXUI_COMPONENTS_TASK_QUEUE_H_ -#define FTXUI_COMPONENTS_TASK_QUEUE_H_ - -#include -#include -#include -#include -#include -#include - - - -template -class TaskQueue { - public: - void Post(T task); - void Close(); - bool Take(T& task); - private: - std::unique_lock lock(events_queue_mutex); - events_queue.push(event); - events_queue_cv.notify_one(); - - std::condition_variable events_queue_cv; - std::mutex events_queue_mutex; - std::queue events_queue; - std::atomic quit_ = false; -}; - -#endif // FTXUI_COMPONENTS_TASK_QUEUE_H_