+ /* thread_finished is called from within the thread context as the last function
+ before the thread is going to die.
+ It should be used to do final cleanups (unlock locked mutexes ....) */
+ virtual void thread_finished() {}
+
+ /* runAsync starts the thread.
+ it assumes that the thread is not running,
+ i.e. sync() *must* return 0.
+ it will not wait for anything. */
+ int runAsync(int prio=0, int policy=0);
+
+ /* run will wait until the thread has either
+ passed it's initialization, or it has
+ died again. */
+ int run(int prio=0, int policy=0);