]> git.sesse.net Git - nageru/blobdiff - httpd.h
Fix so that you can't right-click on non-signal channels anymore.
[nageru] / httpd.h
diff --git a/httpd.h b/httpd.h
index 902745a5845b85d5e873914189057846c3a90585..6e37c5226206b3cd8f5cd5b3dcc8ea9b8b0bcecd 100644 (file)
--- a/httpd.h
+++ b/httpd.h
@@ -6,6 +6,7 @@
 #include <stddef.h>
 #include <stdint.h>
 #include <sys/types.h>
+#include <atomic>
 #include <condition_variable>
 #include <deque>
 #include <mutex>
@@ -78,6 +79,9 @@ private:
        std::mutex streams_mutex;
        std::set<Stream *> streams;  // Not owned.
        std::string header;
+
+       // Metrics.
+       std::atomic<int64_t> metric_num_connected_clients{0};
 };
 
 #endif  // !defined(_HTTPD_H)