Thread.TerminationOption
- Aktualisiert2025-07-21
- 1 Minute(n) Lesezeit
Thread.TerminationOption
Syntax
Thread.TerminationOption
Data Type
Use the following constants with this data type:
- ThreadTerminationOption_Never –(Value: 2) Specifies that a thread does not stop when its execution terminates. The thread must stop before its execution can end. Use this value to protect a thread so the thread does not stop and can complete its work even if its execution attempts to terminate.
- ThreadTerminationOption_Normal –(Value: 0) Specifies that a thread stops when its execution terminates.
- ThreadTerminationOption_Prompt –(Value: 1) Specifies that a thread does not stop when its execution terminates unless you set the Execution.OverrideNonTerminatableThreads property. If an execution attempts to terminate and the execution is running only threads that specify this option, the execution sends the UIMsg_NonTerminatableThreadsArePreventingTermination event. You can use this value to protect a process model worker thread so the thread does not stop if the user terminates the current UUT or batch.
Purpose
Specifies the behavior of a thread when its execution attempts to terminate. This property does not inhibit aborting. The default value is ThreadTerminationOption_Normal .