Fix QMutex::tryLock timeout computation on Linux
authorOlivier Goffart <ogoffart@woboq.com>
Thu, 15 Nov 2012 17:16:30 +0000 (18:16 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 16 Nov 2012 00:37:01 +0000 (01:37 +0100)
commit2b308d4cb5cdf2f3374404c83dc0b193fcb78612
tree176d133c971aa5a72e7ca0b3e86ae443ed4ba5d9
parent162926414d2586bdf32f7bc61860772d598beaeb
Fix QMutex::tryLock timeout computation on Linux

The timeout is in millisecond. So we just need to divide by 1000 to get
the number of seconds

Regression introduced in f587e8f4fd670f11fa1e878c1015d7241033559a
Reported in the comments of QTBUG-24795

Change-Id: Id16e05e7d04d33605860926f7516d14cdefd6a36
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/thread/qmutex_linux.cpp
tests/auto/corelib/thread/qmutex/tst_qmutex.cpp