upd: ready to stop support operation-level concurrency in backend

This commit is contained in:
2023-12-12 14:09:12 +00:00
parent d8b62d568d
commit 730310ea44

View File

@ -1,5 +1,6 @@
#ifndef PROTECTOR_SCHEDULE_H
#define PROTECTOR_SCHEDULE_H
#include <queue>
#include <string>
#include <unordered_map>
@ -11,7 +12,7 @@ class BookStoreBackEndClass {
BlockingStringStream *output_ptr;
BookStoreEngineClass *engine_ptr;
std::unordered_map<std::string, SessionClass> session_map;
std::unordered_map<std::string, std::thread> worker_theads;
std::unordered_map<std::string, std::queue<std::thread>> worker_theads_queue;
public:
BookStoreBackEndClass() = delete;