qt5base-lts/src
Thiago Macieira 8c8cbd1508 Simplify the detection for the monotonic clock in qelapsedtimer_unix.cpp
Unlike the previous code, we now entrust the compiler to properly
implement thread-safe statics for this code. That was the main reason
why the old code was confusing, trying to determine if the clock IDs
were positive or negative.

Instead, simply make a call to clock_getres(CLOCK_MONOTONIC) and that
will tell us if the monotonic clock is supported.

Change-Id: I0031aa609e714ae983c3fffd1469522a68fa3b66
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2020-12-09 21:54:15 +02:00
..
3rdparty PCRE: update to 10.36 2020-12-07 15:22:43 +01:00
android Android: Qml accessibility fixes 2020-12-08 10:02:34 +01:00
concurrent QtConcurrent: filter/map reduction without default ctor 2020-12-04 15:36:50 +01:00
corelib Simplify the detection for the monotonic clock in qelapsedtimer_unix.cpp 2020-12-09 21:54:15 +02:00
dbus Use (new) erase()/erase_if() algorithms 2020-12-05 00:47:44 +01:00
entrypoint CMake: Fix entrypoint output directory when multi-config build 2020-11-23 19:54:08 +08:00
gui Get rid of QPenPrivate::defaultWidth 2020-12-08 22:59:08 +01:00
network Http2: set the reply's error code and string on error 2020-12-07 22:34:49 +00:00
opengl Use (new) erase()/erase_if() algorithms 2020-12-05 00:47:44 +01:00
openglwidgets Member-initialize QOpenGLWidgetPrivate 2020-11-09 13:49:56 +01:00
platformsupport Replace qt_make_unique with std::make_unique 2020-11-23 09:50:21 +01:00
plugins macOS: Fix crash when showing parent-less platform menus 2020-12-09 20:30:05 +01:00
printsupport Doc: Use explicit linkage with target_link_libraries 2020-11-30 05:39:21 +01:00
sql Doc: Use explicit linkage with target_link_libraries 2020-11-30 05:39:21 +01:00
testlib QTestLib: add a abort-on-fail environment variable 2020-12-04 14:09:46 +00:00
tools Remove qlalr documentation stub 2020-12-08 15:15:58 +01:00
widgets QWidget: mark obsolete function isTopLevel() as deprecated 2020-12-09 20:30:04 +01:00
xml Add qt5compat as a dependency to qtxml documentation 2020-12-02 06:01:20 +01:00
CMakeLists.txt cmake: Remove indirection via Startup target for EntryPoint 2020-11-12 18:43:43 +01:00
src.pro Move iOS entrypoint logic to entrypoint library 2020-11-10 16:53:31 +01:00