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
Pauses the current thread during the specified duration.
Warning: If a request to stop the thread is made by another thread (function ThreadRequestStop), the pause stops immediately without waiting for the specified time.
Example
ThreadPause(100)
Syntax
ThreadPause(<Timeout>)
<Timeout>: Integer
Timeout defined for the thread (in hundredths of a second). This parameter can correspond to:
  • an integer corresponding to the number of hundredths of a second,
  • a Duration variable,
  • a duration in a readable format (e.g., '1s' or '10cs').
Remarks
  • It is recommended to use ThreadPause instead of Multitask or Timeout when several threads are used (including the main application thread) if the timeout does not need to process user actions.
  • In a Service application, ThreadPause must be replaced with ServiceWait.
Component: wd300vm.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help