]> git.sesse.net Git - cubemap/blobdiff - server.h
Add Metacube headers in add_data_deferred(), not add_data().
[cubemap] / server.h
index a3e032d88f71a2f66b9613781d64053a6f32b143..edcdc83438b9a0322f382514601abf71e46f43ff 100644 (file)
--- a/server.h
+++ b/server.h
@@ -60,8 +60,9 @@ public:
        void set_encoding(const std::string &stream_id, Stream::Encoding encoding);
 
 private:
-       // Mutex protecting queued_data only. Note that if you want to hold both this
-       // and <mutex> below, you will need to take <mutex> before this one.
+       // Mutex protecting queued_add_clients and streams[..]->queued_data.
+       // Note that if you want to hold both this and <mutex> below,
+       // you will need to take <mutex> before this one.
        mutable pthread_mutex_t queued_data_mutex;
 
        // Deferred commands that should be run from the do_work() thread as soon as possible.
@@ -75,7 +76,6 @@ private:
        //      
        // Protected by <queued_data_mutex>.
        std::vector<int> queued_add_clients;
-       std::map<std::string, std::string> queued_data;
 
        // All variables below this line are protected by the mutex.
        mutable pthread_mutex_t mutex;