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:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user