Avoid calling QElapsedTimer::nsecsElapsed before the first futex sleep
authorThiago Macieira <thiago.macieira@intel.com>
Sat, 11 Aug 2012 14:03:51 +0000 (16:03 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 14 Sep 2012 01:45:50 +0000 (03:45 +0200)
commitf587e8f4fd670f11fa1e878c1015d7241033559a
tree8463cbfeffe6c7d678ad26d4be573cf739a39855
parentd8eb52fc45d0209a07b07be2c0f54a9167704574
Avoid calling QElapsedTimer::nsecsElapsed before the first futex sleep

The first time we're going to sleep, the timeout should be exactly the
value that was passed by the user. We don't need to calculate the time
elapsed between start() and a few lines below.

Change-Id: I99c363b6f0ecfd07ad787b79b75e61771733c2b3
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
src/corelib/thread/qmutex_linux.cpp