X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=accesslog.h;fp=accesslog.h;h=b6ce61c36a7d87c6e21b67de05725d19296cd86c;hp=9eae365511c914c4da780fa51d89dc74fb2e02d2;hb=50651c954803c1941e6ad1bb494712891c18f7d2;hpb=f0621e41fdb96ce1bd58e7561e0aa76345072ba3 diff --git a/accesslog.h b/accesslog.h index 9eae365..b6ce61c 100644 --- a/accesslog.h +++ b/accesslog.h @@ -7,6 +7,7 @@ #include #include +#include #include #include @@ -33,7 +34,7 @@ private: FILE *logfp; std::string filename; - pthread_mutex_t mutex; + std::mutex mu; std::vector pending_writes; };