From ddaf3afe490e3a3f7bbd45cdb796efdc007e81f7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 23 May 2015 21:55:24 +0000 Subject: minus critical section git-svn-id: http://svn.miranda-ng.org/main/trunk@13807 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_core/src/logger.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/mir_core/src/logger.cpp b/src/mir_core/src/logger.cpp index 4c4b37e54a..6cdaad3e11 100644 --- a/src/mir_core/src/logger.cpp +++ b/src/mir_core/src/logger.cpp @@ -37,15 +37,12 @@ struct Logger m_out(NULL), m_lastwrite(0) { - InitializeCriticalSection(&m_cs); } ~Logger() { if (m_out) fclose(m_out); - - DeleteCriticalSection(&m_cs); } int m_signature; @@ -54,8 +51,7 @@ struct Logger FILE *m_out; __int64 m_lastwrite; unsigned m_options; - - CRITICAL_SECTION m_cs; + mir_cs m_cs; }; static int CompareLoggers(const Logger *p1, const Logger *p2) -- cgit v1.2.3