]> git.sesse.net Git - cubemap/blobdiff - server.h
Fix so clients would actually be woken up from the worker thread, not the input threa...
[cubemap] / server.h
index fd309f41e34e1b97434f5af0071f9a47e4ad6690..6e0dd9dac2fd98f48d2a7fc24def92b5eee064cd 100644 (file)
--- a/server.h
+++ b/server.h
@@ -124,6 +124,10 @@ private:
        // See put_client_to_sleep() and wake_up_all_clients().
        std::vector<Client *> sleeping_clients;
 
+       // Clients that we recently got data for (when they were in
+       // <sleeping_clients>).
+       std::vector<Client *> to_process;
+
        // Recover the this pointer, and call do_work().
        static void *do_work_thunk(void *arg);