PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Waits for the end of execution of all parallel tasks found in an array.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 23 and later
Java This function is now available for the Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
New in version 23
Java This function is now available for the Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Example
// Triggers the execution of an array of tasks and waits for the tasks to be ended
t is array of 3 ParallelTasks
t[1] = ParallelTaskExecute(Procedure1, (Param1))
t[2] = ParallelTaskExecute(Procedure1, (Param2))
t[3] = ParallelTaskExecute(Procedure1, (Param3))
...
ParallelTaskWaitAll(t)
Syntax
<Result> = ParallelTaskWaitAll(<Array of Tasks> [, <Maximum Duration>])
<Result>: Boolean
  • True if all the parallel tasks are ended properly.
  • False if the parallel tasks are not ended properly. For example:
    • the maximum duration has been reached.
    • one or more tasks have been canceled.
<Array of Tasks>: Array of ParallelTask variables
Name of Array of ParallelTask variable.
<Maximum Duration>: Optional integer
Maximum duration for running the parallel tasks, expressed in hundredths of a second.
  • If this parameter is specified, ParallelTaskWaitAll locks the application until the execution of all parallel tasks is ended or until the maximum duration is reached.
  • If this parameter is not specified, ParallelTaskWaitAll locks the application until the execution of all parallel tasks is ended.
This parameter can correspond to:
  • an integer corresponding to the number of hundredths of a second,
  • a Duration variable,
  • Versions 23 and later
    the direct indication of duration (1 s or 10 ms for example).
    New in version 23
    the direct indication of duration (1 s or 10 ms for example).
    the direct indication of duration (1 s or 10 ms for example).
Remarks
If ParallelTaskWaitAll is called from the main thread, none of the tasks that must be waited for must be run in the main thread. Otherwise, a lock will occur. Indeed, the main thread cannot wait for the end of tasks and run them at the same time.
A WLanguage error signals the problem before the lock occurs.
Related Examples:
Using parallel tasks Unit examples (WINDEV): Using parallel tasks
[ + ] The parallel tasks are used to speed up the process times and to improve the reactivity of an application.
This example presents the functions and types of variables required to use the parallel tasks:
- running parallel tasks,
- interaction with the controls,
- continuation tasks.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Java wd230java.jar
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment