X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=accesslog.cpp;h=f8ee50bd42d39589fbe812624310fa52c8ec80e4;hp=a0467b1572603c17ea74ea2839e5408f7bdf13f5;hb=5cd46e39b4063d94f6dc559ae350beeb8406a8f9;hpb=f67fda5486a09098c75691c1ac1fcdc033903f59 diff --git a/accesslog.cpp b/accesslog.cpp index a0467b1..f8ee50b 100644 --- a/accesslog.cpp +++ b/accesslog.cpp @@ -1,9 +1,9 @@ +#include +#include +#include #include +#include #include -#include -#include - -#include #include #include @@ -16,12 +16,12 @@ using namespace std; AccessLogThread::AccessLogThread() { - pthread_mutex_init(&mutex); + pthread_mutex_init(&mutex, NULL); } AccessLogThread::AccessLogThread(const string &filename) : filename(filename) { - pthread_mutex_init(&mutex); + pthread_mutex_init(&mutex, NULL); } void AccessLogThread::write(const ClientStats& client)