13.07.2015 Views

Multithreading - Poco

Multithreading - Poco

Multithreading - Poco

SHOW MORE
SHOW LESS

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>/ActiveMethod.h"#include "<strong>Poco</strong>/ActiveResult.h"#include using <strong>Poco</strong>::ActiveMethod;using <strong>Poco</strong>::ActiveResult;class ActiveAdder{public:ActiveAdder():add(this, &ActiveAdder::addImpl){}ActiveMethod add;private:int addImpl(const std::pair& args){return args.first + args.second;}};

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!