|
|
|
|
|
ThreadRequestStop (Function) In french: ThreadDemandeArrêt Sends a stop request to a thread.
ThreadExécute("T1", threadNormal, ProcédureThread)
ThreadRequestStop("T1")
t is Thread(Proc, ("Premier paramètre", 2))
ThreadExécute(t)
...
ThreadRequestStop(t)
Syntax
Request the stop of a thread identified by its name Hide the details
ThreadRequestStop(<Thread name>)
<Thread name>: Character string Name of the thread to be stopped. This name is given when running the thread (ThreadExecute).
Request the stop of a thread identified by a Thread variable Hide the details
ThreadRequestStop(<Thread>)
<Thread>: Thread variable Name of the Thread variable that corresponds to the thread to stop. Remarks - The thread will not be stopped automatically. The thread code has to check if the stop is requested using ThreadStopRequested, and terminate properly.
- When the thread to stop is set to a wait function (e.g. ThreadPause, ThreadWaitSignal or EventWait), the wait is automatically ended to continue execution.
- It is a non-blocking function and does not wait for the thread to stop. You must use ThreadWait to wait for the thread to stop.
Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|