|
ManagedThreadsCancel Method
|
Removes a queued thread from thread pool if still queued, if allowAbort is True
aborts the thread if executing (standard or queued)
Namespace: GSF.ThreadingAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.248-beta+a497a19de709fd99e2448886199a2c8824265ddf
Syntaxpublic static void Cancel(
ManagedThread item,
bool allowAbort,
Object stateInfo
)
Public Shared Sub Cancel (
item As ManagedThread,
allowAbort As Boolean,
stateInfo As Object
)
public:
static void Cancel(
ManagedThread^ item,
bool allowAbort,
Object^ stateInfo
)
static member Cancel :
item : ManagedThread *
allowAbort : bool *
stateInfo : Object -> unit
GSF.Threading.ManagedThreads.Cancel = function(item, allowAbort, stateInfo);
View SourceParameters
- item ManagedThread
- Thread to cancel
- allowAbort Boolean
- Set to True to abort thread if executing
- stateInfo Object
- An object that contains application-specific information, such as state, which can be used by the thread being aborted.
See Also