From 06322ab6046536b910a087069dfd87fb6e6b85dc Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 20 Jul 2017 10:10:46 +0200 Subject: [PATCH] Minor cleanup of utility.hpp --- utility.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utility.hpp b/utility.hpp index 3068444..b7ccdfd 100644 --- a/utility.hpp +++ b/utility.hpp @@ -134,7 +134,6 @@ namespace SimpleWeb { } }; - class RequestMessage { public: /// Parse request line and header fields @@ -260,12 +259,13 @@ namespace SimpleWeb { public: class SharedLock { + friend class ContinueScopes; std::atomic &count; + SharedLock(std::atomic &count) : count(count) {} SharedLock &operator=(const SharedLock &) = delete; SharedLock(const SharedLock &) = delete; public: - SharedLock(std::atomic &count) : count(count) {} ~SharedLock() { count.fetch_sub(1); }