future
This commit is contained in:
@@ -14,11 +14,6 @@ public:
|
||||
|
||||
template<typename _Callable>
|
||||
void init(_Callable _IOCPClient) {
|
||||
roomNames_ = std::future<std::unordered_map<Snowflake, std::string>>();
|
||||
findRoomId_ = std::future<std::unordered_map<std::string, Snowflake>>();
|
||||
userNames_ = std::future<std::unordered_map<Snowflake, std::string>>();
|
||||
findUserId_ = std::future<std::unordered_map<std::string, Snowflake>>();
|
||||
|
||||
auto config = ConfigManager::load();
|
||||
log::setDefaultLogger(config.logLevel, config.logFileName, config.logfileSize, config.logfileCount);
|
||||
threadPool_.init(0);
|
||||
@@ -102,11 +97,11 @@ private:
|
||||
std::queue<std::string> messageQueue_;
|
||||
std::vector<std::string> messageHistory_;
|
||||
|
||||
std::future<std::unordered_map<Snowflake, std::string>> roomNames_;
|
||||
std::future<std::unordered_map<std::string, Snowflake>> findRoomId_;
|
||||
std::unordered_map<Snowflake, std::string> roomNames_;
|
||||
std::unordered_map<std::string, Snowflake> findRoomId_;
|
||||
|
||||
std::future<std::unordered_map<Snowflake, std::string>> userNames_;
|
||||
std::future<std::unordered_map<std::string, Snowflake>> findUserId_;
|
||||
std::unordered_map<Snowflake, std::string> userNames_;
|
||||
std::unordered_map<std::string, Snowflake> findUserId_;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user