aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJaeseung Ha <ipknhama@gmail.com>2017-09-17 18:30:24 +0900
committerGitHub <noreply@github.com>2017-09-17 18:30:24 +0900
commit112e86b9067bf84700ece37f3ea18328571e810b (patch)
treec74d9cfac964a78a516d93d16468180c3f58452d /include
parentc32aae4b5f4f8b6e9b63463103eca3546bdb44f9 (diff)
parentbd9a9ace4ae6da3e6600a58f79b1acb51edc831b (diff)
downloadcrow-112e86b9067bf84700ece37f3ea18328571e810b.tar.gz
crow-112e86b9067bf84700ece37f3ea18328571e810b.zip
Merge pull request #194 from vadz/atomic-conn-count
Use atomic type for connection count shared between threads
Diffstat (limited to 'include')
-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