Polycode::Threaded Class Reference

An easy way to create threaded processes. More...

List of all members.

Public Member Functions

virtual void killThread ()
 Sets the thread running flag to false.
virtual void updateThread ()=0
 Implement this method with your own code.

Detailed Description

An easy way to create threaded processes.

If you subclass this class, you can implement the updateThread method, which will be called in its own thread repeatedly until threadRunning is false once the thread is created. If you only need to run through something once, make sure to set threadRunning to avoid it being called again.

To create the thread, pass your Threaded subclass to createThread method of Core.

See also:
Core
Generated on Sat Aug 11 18:04:12 2012 for Polycode by  doxygen 1.6.3