INTRODUCTION Overview Download and Install Documentation Publications REPOSITORY Libraries DEVELOPER Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
gbxsickacfr::gbxiceutilacfr::SafeThread Class ReferenceA version of the Thread class which catches all possible exceptions. More...
Inherits gbxsickacfr::gbxiceutilacfr::Thread. Inherited by TestThread, and TestThreadWithThrow. Inheritance diagram for gbxsickacfr::gbxiceutilacfr::SafeThread: ![]()
Detailed DescriptionA version of the Thread class which catches all possible exceptions.If a stray exception is caught, an error message will be printed (using cout), then we will wait for someone to call stop(). To use this class, simply implement the pure virtual walk() function. void MyThread::walk() { // initialize // main loop while ( !isStopping() ) { // do something } // clean up }
Member Function Documentation
Implement this function in the derived class and put here all the stuff which your thread needs to do.
The documentation for this class was generated from the following files:
|