diff options
Diffstat (limited to 'sandbox/multithreading-tests/wait-for-subscription-thread/main.cpp')
-rw-r--r-- | sandbox/multithreading-tests/wait-for-subscription-thread/main.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/sandbox/multithreading-tests/wait-for-subscription-thread/main.cpp b/sandbox/multithreading-tests/wait-for-subscription-thread/main.cpp deleted file mode 100644 index 44390e2d..00000000 --- a/sandbox/multithreading-tests/wait-for-subscription-thread/main.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#include <contextproperty.h> - -#include "thread.h" - -#include <QCoreApplication> -#include <QThread> - -int main(int argc, char** argv) -{ - QCoreApplication app(argc, argv); - - qDebug() << "MAIN THREAD:" << QCoreApplication::instance()->thread(); - - // Start a thread which will create the ContextProperty. - Thread thread; - thread.start(); - - sleep(2); - ContextProperty *cp = new ContextProperty("test.int"); - cp->waitForSubscription(); - qDebug() << "waiting is done in the main"; - - return app.exec(); -} - |