MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / connectAll

Method connectAll

Suscan/MultitaskController.cpp:37–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void
38CancellableTaskContext::connectAll(void)
39{
40 // Thread start triggers processing
41 QObject::connect(
42 this->mThread,
43 SIGNAL(started()),
44 this->mTask,
45 SLOT(onWorkRequested()));
46
47 // And thread quit trigger deleteLater()
48 QObject::connect(
49 this->mThread,
50 SIGNAL(finished()),
51 this->mThread,
52 SLOT(deleteLater()));
53
54 // Task is deleted after finalization
55 QObject::connect(
56 this->mThread,
57 SIGNAL(finished()),
58 this->mTask,
59 SLOT(deleteLater()));
60}
61
62CancellableTaskContext::~CancellableTaskContext()
63{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected