Minor comment cleanup
This commit is contained in:
parent
95d44b804d
commit
dcaad5e9da
3 changed files with 3 additions and 3 deletions
|
|
@ -181,7 +181,7 @@ int main() {
|
||||||
header.emplace("Content-Length", to_string(length));
|
header.emplace("Content-Length", to_string(length));
|
||||||
response->write(header);
|
response->write(header);
|
||||||
|
|
||||||
// Trick to define a recursive function within this scope (for your convenience)
|
// Trick to define a recursive function within this scope (for example purposes)
|
||||||
class FileServer {
|
class FileServer {
|
||||||
public:
|
public:
|
||||||
static void read_and_send(const shared_ptr<HttpServer::Response> &response, const shared_ptr<ifstream> &ifs) {
|
static void read_and_send(const shared_ptr<HttpServer::Response> &response, const shared_ptr<ifstream> &ifs) {
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@ int main() {
|
||||||
header.emplace("Content-Length", to_string(length));
|
header.emplace("Content-Length", to_string(length));
|
||||||
response->write(header);
|
response->write(header);
|
||||||
|
|
||||||
// Trick to define a recursive function within this scope (for your convenience)
|
// Trick to define a recursive function within this scope (for example purposes)
|
||||||
class FileServer {
|
class FileServer {
|
||||||
public:
|
public:
|
||||||
static void read_and_send(const shared_ptr<HttpsServer::Response> &response, const shared_ptr<ifstream> &ifs) {
|
static void read_and_send(const shared_ptr<HttpsServer::Response> &response, const shared_ptr<ifstream> &ifs) {
|
||||||
|
|
|
||||||
|
|
@ -285,7 +285,7 @@ namespace SimpleWeb {
|
||||||
return std::unique_ptr<SharedLock>(new SharedLock(count));
|
return std::unique_ptr<SharedLock>(new SharedLock(count));
|
||||||
}
|
}
|
||||||
|
|
||||||
//// Blocks until all shared locks are released, then prevents future shared locks
|
/// Blocks until all shared locks are released, then prevents future shared locks
|
||||||
void stop() noexcept {
|
void stop() noexcept {
|
||||||
long expected = 0;
|
long expected = 0;
|
||||||
while(!count.compare_exchange_weak(expected, -1)) {
|
while(!count.compare_exchange_weak(expected, -1)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue