mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-06 00:52:34 +02:00
* Mutex-locked logging - write/flush isn't exactly an atomic operation.
This commit is contained in:
parent
cffa96a81f
commit
1ac61194cf
@ -80,6 +80,9 @@ ofstream logfile;
|
||||
|
||||
void TomahawkLogHandler( QtMsgType type, const char *msg )
|
||||
{
|
||||
static QMutex s_mutex;
|
||||
|
||||
QMutexLocker locker( &s_mutex );
|
||||
switch( type )
|
||||
{
|
||||
case QtDebugMsg:
|
||||
|
Loading…
x
Reference in New Issue
Block a user