diff options
author | Ahmad Samir <[email protected]> | 2023-02-27 21:36:45 +0200 |
---|---|---|
committer | Ahmad Samir <[email protected]> | 2023-03-13 23:26:28 +0200 |
commit | 0d29a406f724fcc63e06530e4cf189fd3ca679f6 (patch) | |
tree | 1c01510d80e6d6f1d7032e3291b2c974642182a3 /tests/baseline/shared/baselineprotocol.cpp | |
parent | d7f0677368a96df7c4f381affd52323ebce8f978 (diff) |
QThread: add sleep(std::chrono::nanoseconds) overload
All the other overloads are implemented using the new one.
Windows change relies on the pre-check in the code review making sure it
compiles.
[ChangeLog][QtCore][QThread] Added sleep(std::chrono::nanoseconds)
overload.
Task-number: QTBUG-110059
Change-Id: I9a4f4bf09041788ec9275093b6b8d0386521e286
Reviewed-by: Thiago Macieira <[email protected]>
Diffstat (limited to 'tests/baseline/shared/baselineprotocol.cpp')
-rw-r--r-- | tests/baseline/shared/baselineprotocol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/baseline/shared/baselineprotocol.cpp b/tests/baseline/shared/baselineprotocol.cpp index 198057abe6b..b77d3fc6cfe 100644 --- a/tests/baseline/shared/baselineprotocol.cpp +++ b/tests/baseline/shared/baselineprotocol.cpp @@ -270,7 +270,7 @@ bool BaselineProtocol::connect(const QString &testCase, bool *dryrun, const Plat socket.connectToHost(serverName, ServerPort); if (!socket.waitForConnected(Timeout)) { - QThread::msleep(3000); // Wait a bit and try again, the server might just be restarting + QThread::sleep(std::chrono::seconds{3}); // Wait a bit and try again, the server might just be restarting if (!socket.waitForConnected(Timeout)) { errMsg += QLS("TCP connectToHost failed. Host:") + QLS(serverName) + QLS(" port:") + QString::number(ServerPort); return false; |