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.

Timers> POCO provides a "sequential" timer implementation in the<strong>Poco</strong>::Timer class.> #include "<strong>Poco</strong>/Timer.h"> A timer starts a thread (taken from a thread pool) that first waitsfor a given start interval.> Once the start interval expires, the timer invokes a callbackfunction.> After the callback function returns, and the periodic interval isnot zero, the timer repeatedly waits for the periodic interval, andthen invokes the callback function.

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

Saved successfully!

Ooh no, something went wrong!