18 this->reader = &reader;
19 this->callback = &callback;
26 if (reader !=
nullptr && callback !=
nullptr) {
27 while (!isStopping() && !reader->isClosed()) {
29 callback->onRead(*(reader->lastRead()), *reader);
38 if (reader !=
nullptr) {
A callback for typed data from a port.
void onStop() override
Call-back, called while halting the thread (before join).
void run() override
Main body of the new thread.
A base class for sources of typed data.