|
|
|
|
|
ThreadStopRequested (Function) In french: ThreadArrêtDemandé Checks if a stop request has been sent to the running thread.
IF ThreadStopRequested() THEN
...
ThreadEnd()
END
Syntax
<Result> = ThreadStopRequested()
<Result>: Boolean - True if a stop request has been sent to the running thread,
- False otherwise.
Remarks - One thread requests another thread to stop via ThreadRequestStop.
- The current thread's code must regularly check (loops, etc.) whether a stop has been requested, and terminate cleanly if so.
- When a thread's code is on a wait function (e.g. ThreadPause, ThreadWaitSignal or EventWait), the wait is automatically terminated when a request to stop the thread is made by another thread.
Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|