summaryrefslogtreecommitdiff
path: root/server/src/main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2016-01-20 05:35:09 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2016-01-20 05:35:09 +0300
commit09a905e401df451f12673d75dc8d4d72ee73b7c9 (patch)
tree75e620ca41dd673f9286f3351f2982c2bbfc51e1 /server/src/main.cpp
parentbb8cd8a9ff7d80046cc2c7d41742c74d8f811c62 (diff)
server:
very basic implementation of download_state_changed event api call for plugins started work on thread safety (plugins may and will be multithreaded, so api for plugins should be thread safe)
Diffstat (limited to 'server/src/main.cpp')
-rw-r--r--server/src/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/main.cpp b/server/src/main.cpp
index 47dba02..b45ce8f 100644
--- a/server/src/main.cpp
+++ b/server/src/main.cpp
@@ -41,13 +41,13 @@ modules_handler *modules = nullptr;
namespace bpo = boost::program_options;
-std::map<std::string, client*> clients; //auth token used for key
+lockable_container<std::map<std::string, client*> > clients; //auth token used for key
runtime_config_s runtime_config;
-std::map<int, download_internal_s> downloads;
+lockable_container<std::map<int, download_internal_s> > downloads;
-std::list<server_session*> sessions; //sessions to access from apis for modules, should be mutex guarded fro thread safety
+lockable_container<std::list<server_session*> > sessions; //sessions to access from apis for modules, should be mutex guarded fro thread safety
server *serv = nullptr;