ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Process functions / Threads, semaphores, signals and mutex
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Sends a stop request to a thread.
Example
ThreadExécute("T1", threadNormal, ProcédureThread)
ThreadRequestStop("T1")
// Construit un thread
t is Thread(Proc, ("Premier paramètre", 2))
// Déclenche l'exécution du thread
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
Component: wd300vm.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 11/11/2023

Send a report | Local help