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
ThreadStopRequested (Function)
In french: ThreadArrêtDemandé
Checks if a stop request has been sent to the running thread.
Example
// Si une demande d'arrêt a été envoyée au thread
IF ThreadStopRequested() THEN
	// Libérer les ressources du thread
	...
	// Terminer le thread
	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
Component: wd300vm.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help