Changeset View
Changeset View
Standalone View
Standalone View
plugins/debuggercommon/tests/debuggees/debugeethreads.cpp
Show All 25 Lines | |||||
26 | public: | 26 | public: | ||
27 | void run() override { | 27 | void run() override { | ||
28 | sleep(1); | 28 | sleep(1); | ||
29 | std::cout << "Hello, world!" << std::endl; | 29 | std::cout << "Hello, world!" << std::endl; | ||
30 | } | 30 | } | ||
31 | }; | 31 | }; | ||
32 | 32 | | |||
33 | 33 | | |||
34 | int main(int /*argc*/, char **/*argv*/) { | 34 | int main(int /*argc*/, char** /*argv*/) { | ||
35 | TestThread t1; | 35 | TestThread t1; | ||
36 | TestThread t2; | 36 | TestThread t2; | ||
37 | TestThread t3; | 37 | TestThread t3; | ||
38 | t1.start(); | 38 | t1.start(); | ||
39 | t2.start(); | 39 | t2.start(); | ||
40 | t3.start(); | 40 | t3.start(); | ||
41 | QThread::usleep(500000); | 41 | QThread::usleep(500000); | ||
42 | QThread::usleep(600000); | 42 | QThread::usleep(600000); | ||
43 | return 0; | 43 | return 0; | ||
44 | } | 44 | } |