summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qthread.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-07-03 12:19:08 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-07-07 20:54:12 +0200
commit1e8d623340bb18c3d39d9bcd165e2250744a445a (patch)
treecb88c4549ae7adcfcaa2eb72c95edacef875bb76 /src/corelib/thread/qthread.cpp
parent471e4fcb226c4523efe93b1bdaf0db026495da94 (diff)
QThread::create: remove the pre-C++17 codepaths
As we require C++17 now. The configure-time test checking for future/async is left in for the moment being. Change-Id: Ifde39d420673f70a2277f5a645bfaad30935a381 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/corelib/thread/qthread.cpp')
-rw-r--r--src/corelib/thread/qthread.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/corelib/thread/qthread.cpp b/src/corelib/thread/qthread.cpp
index 6e31ca4fbb..b136a76aeb 100644
--- a/src/corelib/thread/qthread.cpp
+++ b/src/corelib/thread/qthread.cpp
@@ -1078,29 +1078,6 @@ bool QThread::isInterruptionRequested() const
\note the caller acquires ownership of the returned QThread instance.
- \note this function is only available when using C++17.
-
- \warning do not call start() on the returned QThread instance more than once;
- doing so will result in undefined behavior.
-
- \sa start()
-*/
-
-/*!
- \fn template <typename Function> QThread *QThread::create(Function &&f)
- \since 5.10
-
- Creates a new QThread object that will execute the function \a f.
-
- The new thread is not started -- it must be started by an explicit call
- to start(). This allows you to connect to its signals, move QObjects
- to the thread, choose the new thread's priority and so on. The function
- \a f will be called in the new thread.
-
- Returns the newly created QThread instance.
-
- \note the caller acquires ownership of the returned QThread instance.
-
\warning do not call start() on the returned QThread instance more than once;
doing so will result in undefined behavior.