Improved includes in utility.hpp
This commit is contained in:
parent
dfd7895328
commit
653e24296b
1 changed files with 3 additions and 2 deletions
|
|
@ -2,9 +2,8 @@
|
||||||
#define SIMPLE_WEB_SERVER_UTILITY_HPP
|
#define SIMPLE_WEB_SERVER_UTILITY_HPP
|
||||||
|
|
||||||
#include "status_code.hpp"
|
#include "status_code.hpp"
|
||||||
#include <condition_variable>
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <mutex>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
||||||
|
|
@ -195,6 +194,8 @@ namespace SimpleWeb {
|
||||||
};
|
};
|
||||||
} // namespace SimpleWeb
|
} // namespace SimpleWeb
|
||||||
#else
|
#else
|
||||||
|
#include <condition_variable>
|
||||||
|
#include <mutex>
|
||||||
namespace SimpleWeb {
|
namespace SimpleWeb {
|
||||||
/// Read-preferring R/W lock.
|
/// Read-preferring R/W lock.
|
||||||
/// Based on https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock#Using_a_condition_variable_and_a_mutex pseudocode.
|
/// Based on https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock#Using_a_condition_variable_and_a_mutex pseudocode.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue