ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Process functions / Threads, semaphores, signals and mutex
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
ThreadSuspend (Function)
In french: ThreadSuspend
Warning
This function is strongly not recommended because it violently stops the current thread. It can cause serious problems (critical section not released, etc.). It is recommended to use ThreadWaitSignal and ThreadSendSignal.
Temporarily suspends the execution of the specified thread. The current processes is not locked. To resume the execution of the thread, use ThreadResume.
Reminder: A thread is a process run in parallel with the current application (main thread). This allows you to run a task in the background (e.g. backup, etc.).
Example
// -- Click on the BTN_Save button
// Interrupts the print in background task
ThreadSuspend("Print_background")
// Backup
...
// Resume the print
ThreadResume("Print_background")
Syntax
ThreadSuspend(<Thread name>)
<Thread name>: Character string
Name of the thread to suspend. This name is given when running the thread (ThreadExecute).
No error occurs if the name of the thread does not exist.
Caution: the thread name cannot be an empty string: you cannot suspend the current thread.
Remarks
In order for the current thread to wait for another thread, use ThreadWaitSignal.
Business / UI classification: Neutral code
Component: wd290vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help