BasicWorkItem Constructor |
Name | Description | |
---|---|---|
BasicWorkItem |
Standard constructor
| |
BasicWorkItem(Boolean) |
Allowing to abort is disabled per default since thread aborting results in
unstable system state, see http://msdn.microsoft.com/en-us/magazine/cc163644.aspx :
[..] "I'll caution you against using Thread.Abort to control the lifetime of a thread,
especially if you have little knowledge about the implementation of the code you're
aborting. An abort inside of a critical region could spell disaster for an entire
AppDomain, and while a polite abort does signficantly reduce the window of disaster
to very tiny slivers, that one time out of 1,000 could lead to a deadlock or resource
leak or worse."
|