1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02:00

* Mutex-locked logging - write/flush isn't exactly an atomic operation.

This commit is contained in:
Christian Muehlhaeuser
2011-04-04 06:56:33 +02:00
parent cffa96a81f
commit 1ac61194cf

View File

@@ -80,6 +80,9 @@ ofstream logfile;
void TomahawkLogHandler( QtMsgType type, const char *msg ) void TomahawkLogHandler( QtMsgType type, const char *msg )
{ {
static QMutex s_mutex;
QMutexLocker locker( &s_mutex );
switch( type ) switch( type )
{ {
case QtDebugMsg: case QtDebugMsg: