21 this->reader = &reader;
22 this->callback = &callback;
29 if (reader !=
nullptr && callback !=
nullptr) {
30 while (!isStopping() && !reader->isClosed()) {
32 callback->onRead(*(reader->lastRead()), *reader);
41 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.