Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_corelib_concurrent_qthreadpool.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
6{
7 void run() override
8 {
9 qDebug() << "Hello world from thread" << QThread::currentThread();
10 }
11};
12
14// QThreadPool takes ownership and deletes 'hello' automatically
void run() override
Implement this pure virtual function in your subclass.
\inmodule QtCore
Definition qrunnable.h:18
static QThreadPool * globalInstance()
Returns the global QThreadPool instance.
static QThread * currentThread()
Definition qthread.cpp:1039
#define qDebug
[1]
Definition qlogging.h:164
HelloWorldTask * hello