On Wed, Jun 1, 2011 at 3:30 PM, Wim Dumon <[email protected]> wrote: > Run it in a separate thread. > > void myCron() > { > for(;;) { > sleep(10000); > doStuff(); > } > } > > main() { > boost::thread t(myCron); > } > > WTimer is for use within a session.
Remember to use boost::thread::sleep() as it is a interruption point for boost threads. G. -- cpp-today.blogspot.com ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
