File indexing completed on 2024-05-12 15:50:10
0001 /* -*- C++ -*- 0002 This file is part of ThreadWeaver. 0003 0004 SPDX-FileCopyrightText: 2005-2014 Mirko Boehm <mirko@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 //@@snippet_begin(sample-helloworld) 0010 #include <QtCore> 0011 #include <ThreadWeaver/ThreadWeaver> 0012 0013 int main(int argc, char **argv) 0014 { 0015 QCoreApplication app(argc, argv); 0016 0017 using namespace ThreadWeaver; 0018 stream() << make_job([]() { 0019 qDebug() << "Hello World!"; 0020 }); 0021 } 0022 //@@snippet_end