aboutsummaryrefslogtreecommitdiffstats
path: root/include/crow/http_connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/crow/http_connection.h')
-rw-r--r--include/crow/http_connection.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crow/http_connection.h b/include/crow/http_connection.h
index 3ef8089..1537d17 100644
--- a/include/crow/http_connection.h
+++ b/include/crow/http_connection.h
@@ -176,7 +176,7 @@ namespace crow
}
#ifdef CROW_ENABLE_DEBUG
- static int connectionCount;
+ static std::atomic<int> connectionCount;
#endif
template <typename Adaptor, typename Handler, typename ... Middlewares>
class Connection