ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Sends a stop request to a thread.
New in version 28
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
Java This function is now available for Java applications.
Example
ThreadExecute("T1", threadNormal, ThreadProcedure)
ThreadRequestStop ("T1")
// Build a thread
t is Thread(Proc, ("First parameter", 2))
// Trigger the execution of the thread
ThreadExecute(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.
  • 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: wd280vm.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment