X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=accesslog.h;h=b6ce61c36a7d87c6e21b67de05725d19296cd86c;hp=0ef5c753ef4c433c9ba1411d5195ce15f87085aa;hb=061988af511f42da3cd584b4d983177504ddc177;hpb=5cd46e39b4063d94f6dc559ae350beeb8406a8f9 diff --git a/accesslog.h b/accesslog.h index 0ef5c75..b6ce61c 100644 --- a/accesslog.h +++ b/accesslog.h @@ -7,6 +7,7 @@ #include #include +#include #include #include @@ -29,11 +30,11 @@ public: private: virtual void do_work(); - // The file we are logging to. If NULL, do not log. + // The file we are logging to. If nullptr, do not log. FILE *logfp; std::string filename; - pthread_mutex_t mutex; + std::mutex mu; std::vector pending_writes; };