Threads and Semaphores: 4.3 Using Multiple Threads: Handling Errors in a Thread

Up: GEOS SDK TechDocs | Up | Prev: 4.2 Managing Priority Values | Next: 4.4 When a Thread Is Finished
ThreadHandleException(), ThreadException

Some threads in GEOS will want to handle certain errors in special ways. The errors a particular thread can intercept and handle are listed in an enumerated type called ThreadException , the elements of which are shown below:

A thread can handle a particular exception by setting up a special handler routine and calling ThreadHandleException() when one of these exceptions occurs. This is useful if a number of objects are run by the same thread and all should handle a particular exception in the same way; the routine can be thread-specific rather than object-specific. ThreadHandleException() must be passed the thread's handle, the exception type, and a pointer to the handler routine's entry point.


Up: GEOS SDK TechDocs | Up | Prev: 4.2 Managing Priority Values | Next: 4.4 When a Thread Is Finished