1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

* Added TomahawkUtils::msleep( uint ). Sigh.

This commit is contained in:
Christian Muehlhaeuser 2012-06-06 16:24:39 +02:00
parent 2dc73d04af
commit 872d8a3da5
2 changed files with 14 additions and 0 deletions

View File

@ -316,6 +316,18 @@ extensionToMimetype( const QString& extension )
return s_ext2mime.value( extension, "unknown" );
}
void
msleep( unsigned int ms )
{
#ifdef WIN32
Sleep( ms );
#else
::usleep( ms * 1000 );
#endif
}
static QMutex s_noProxyHostsMutex;
static QStringList s_noProxyHosts;

View File

@ -99,6 +99,8 @@ namespace TomahawkUtils
DLLEXPORT QString ageToString( const QDateTime& time, bool appendAgoString = false );
DLLEXPORT QString filesizeToString( unsigned int size );
DLLEXPORT QString extensionToMimetype( const QString& extension );
DLLEXPORT void msleep( unsigned int ms );
DLLEXPORT bool newerVersion( const QString& oldVersion, const QString& newVersion );
DLLEXPORT NetworkProxyFactory* proxyFactory( bool makeClone = false, bool noMutexLocker = false );