From d5721b974a58ed5a26f33346dae728d93a7c1803 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 8 Oct 2010 07:01:44 +0300 Subject: boost threads and mutexes, better error handling (thread's timeouts) --- log.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'log.cpp') diff --git a/log.cpp b/log.cpp index 187ce85..d4d65a7 100644 --- a/log.cpp +++ b/log.cpp @@ -21,10 +21,12 @@ logtofile& logtofile::operator<<(TCHAR *buf) extern bool bDebugLog; if(bDebugLog) { + log_mutex.lock(); char *tmp = mir_utf8encodeW(buf); log.open(path, std::ios::app |std::ios::ate); log<