|
Clipper
|
Thread base class: Override this to create new threads. More...
#include <clipper_thread.h>
Public Member Functions | |
| bool | run () |
| bool | join () |
| int | id () const |
Static Public Member Functions | |
| static void | lock () |
| static void | unlock () |
Protected Member Functions | |
| virtual void | Run ()=0 |
Thread base class: Override this to create new threads.
To create a thread, override this class. Store data as members with accessors to set input and read output. Override the Run() method to do the actual work. e.g. the following class implements a thread which can sum a list of numbers.