From 09a905e401df451f12673d75dc8d4d72ee73b7c9 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 20 Jan 2016 05:35:09 +0300 Subject: 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) --- server/include/utilities.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'server/include/utilities.h') diff --git a/server/include/utilities.h b/server/include/utilities.h index 40eb38f..3e77f89 100644 --- a/server/include/utilities.h +++ b/server/include/utilities.h @@ -25,6 +25,7 @@ #include #include + //TODO: use glib's xdg api instead ? std::string replace_home_var(const std::string &path); @@ -35,6 +36,21 @@ std::shared_ptr pack_msg(server_msg *msg, int *size); std::string random_string(int length); std::string generate_auth_token(); +#include +#include + +template +class lockable_container : public boost::basic_lockable_adapter, public CONTAINER +{ + +}; + +/*template +class lockable_container_child : public lockable_container +{ + //code +}; */ + #endif // UTILITIES_H_INCLUDED -- cgit v1.2.3