The canonical way to pass arguments to a new thread is through the Runnable subclass, which you need to create as a stream entry point. Example:
class MyThread: public Poco::Runnable { public: MyThread(const std::string& arg1, int arg2): _arg1(arg1), _arg2(arg2) { } void run() {
To transfer data to an already running stream, the best solution depends on your requirements. For a typical workflow scenario, consider using Poco :: NotificationQueue . A full sample with explanations can be found here: http://pocoproject.org/slides/090-NotificationsEvents.pdf
source share