Multithreading - Poco
Multithreading - Poco
Multithreading - Poco
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
#include "<strong>Poco</strong>/Activity.h"#include "<strong>Poco</strong>/Thread.h"#include using <strong>Poco</strong>::Thread;class ActivityExample{public:ActivityExample(): _activity(this, &ActivityExample::runActivity){}void start(){_activity.start();}void stop(){_activity.stop(); // request stop_activity.wait(); // wait until activity actually stops}