Minor comment cleanup

This commit is contained in:
eidheim 2017-07-26 08:05:02 +02:00
commit dcaad5e9da
3 changed files with 3 additions and 3 deletions

View file

@ -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) {

View file

@ -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) {

View file

@ -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)) {