OW_NAMESPACE::ThreadCancelledException Struct Reference

In the event a thread has been cancelled, a ThreadCancelledException will be thrown. More...

#include <OW_ThreadCancelledException.hpp>


Detailed Description

In the event a thread has been cancelled, a ThreadCancelledException will be thrown.

DO NOT catch this exception. ThreadCancelledException is not derived from anything. Except for in destructors, do not write code like this: try { //... } catch (...) { // swallow all exceptions }

Instead do this: try { //... } catch (ThreadCancelledException&) { throw; } catch (std::exception& e) { // handle the exception } The only place ThreadCancelledException should be caught is in Thread::threadRunner() or a destructor. main() shouldn't need to catch it, as the main thread of an application should never be cancelled. The main thread shouldn't need to ever call testCancel.

Definition at line 66 of file OW_ThreadCancelledException.hpp.


The documentation for this struct was generated from the following file:
Generated on Thu Feb 9 09:14:43 2006 for openwbem by  doxygen 1.4.6