Minor cleanup of utility.hpp
This commit is contained in:
parent
35f835a67b
commit
06322ab604
1 changed files with 2 additions and 2 deletions
|
|
@ -134,7 +134,6 @@ namespace SimpleWeb {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class RequestMessage {
|
class RequestMessage {
|
||||||
public:
|
public:
|
||||||
/// Parse request line and header fields
|
/// Parse request line and header fields
|
||||||
|
|
@ -260,12 +259,13 @@ namespace SimpleWeb {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
class SharedLock {
|
class SharedLock {
|
||||||
|
friend class ContinueScopes;
|
||||||
std::atomic<long> &count;
|
std::atomic<long> &count;
|
||||||
|
SharedLock(std::atomic<long> &count) : count(count) {}
|
||||||
SharedLock &operator=(const SharedLock &) = delete;
|
SharedLock &operator=(const SharedLock &) = delete;
|
||||||
SharedLock(const SharedLock &) = delete;
|
SharedLock(const SharedLock &) = delete;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SharedLock(std::atomic<long> &count) : count(count) {}
|
|
||||||
~SharedLock() {
|
~SharedLock() {
|
||||||
count.fetch_sub(1);
|
count.fetch_sub(1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue