X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=accesslog.cpp;fp=accesslog.cpp;h=a0467b1572603c17ea74ea2839e5408f7bdf13f5;hp=b666f27cf3018fdd47e5fd76c51a2a6483cb4802;hb=f67fda5486a09098c75691c1ac1fcdc033903f59;hpb=136469d722a9986be6bbad68788619284919d876 diff --git a/accesslog.cpp b/accesslog.cpp index b666f27..a0467b1 100644 --- a/accesslog.cpp +++ b/accesslog.cpp @@ -14,10 +14,15 @@ using namespace std; -AccessLogThread::AccessLogThread() {} +AccessLogThread::AccessLogThread() +{ + pthread_mutex_init(&mutex); +} AccessLogThread::AccessLogThread(const string &filename) - : filename(filename) {} + : filename(filename) { + pthread_mutex_init(&mutex); +} void AccessLogThread::write(const ClientStats& client) {