24 void send(trading::Order&);
31 std::shared_ptr<Publisher>
_pub;
void stop()
Definition Algo.cc:23
std::atomic< bool > _running
Definition Algo.hh:30
std::mutex _send_mutex
Definition Algo.hh:36
std::vector< std::future< bool > > _futures
Definition Algo.hh:39
std::atomic< bool > _initialized
Definition Algo.hh:29
bool initialized()
Definition Algo.cc:43
std::jthread _reader_thread
Definition Algo.hh:37
std::queue< trading::Order > _orders
Definition Algo.hh:28
void process()
Definition Algo.cc:47
Algo()
Definition Algo.cc:11
void generate_orders()
Definition Algo.cc:39
utils::ThreadSafeQueue< trading::Order > _order_queue
Definition Algo.hh:33
void send(trading::Order &)
Definition Algo.cc:106
std::vector< std::jthread > _worker_threads
Definition Algo.hh:38
void initialize()
Definition Algo.cc:15
utils::ThreadPool _thread_pool
Definition Algo.hh:34
std::shared_ptr< Publisher > _pub
Definition Algo.hh:31
Definition ThreadPool.hh:12
Definition ThreadSafeQueue.hh:11