Fixed a issue that Rainmeter crashes at LSLog(). (multithreading issue)

This commit is contained in:
spx
2010-09-19 09:21:25 +00:00
parent df146e4eb4
commit 704558b7df
6 changed files with 29 additions and 7 deletions

View File

@ -195,7 +195,9 @@ public:
void StartLogging();
void StopLogging();
void DeleteLogFile();
std::list<LOG_INFO> m_LogData;
void AddAboutLogInfo(const LOG_INFO& logInfo);
const std::list<LOG_INFO>& GetAboutLogData() { return m_LogData; }
void SetDebug(bool debug);
@ -279,6 +281,9 @@ private:
bool m_Logging;
std::list<LOG_INFO> m_LogData;
CRITICAL_SECTION m_CsLogData;
std::wstring m_ConfigEditor;
std::wstring m_LogViewer;