0d29a406f7
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 <thiago.macieira@intel.com>
18 lines
348 B
C++
18 lines
348 B
C++
// Copyright (C) 2016 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
#include "interface.h"
|
|
#include <QThread>
|
|
|
|
Interface::Interface()
|
|
{
|
|
}
|
|
|
|
int Interface::sleepMethod(int msec)
|
|
{
|
|
QThread::sleep(std::chrono::milliseconds{msec});
|
|
return 42;
|
|
}
|
|
|
|
#include "moc_interface.cpp"
|