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.
Active Methods> An active method is a member function that executes in its ownthread (taken from the default thread pool).> Active methods can share a thread. In this case, only one activemethod can execute at a time while others are waiting in a queuefor execution.> It takes exactly one argument and returns a value.> To pass more than one argument, use a struct, a std::pair, or a<strong>Poco</strong>::Tuple.> The return value of an active method will be delivered in an<strong>Poco</strong>::ActiveResult (also called a Future).