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
ThreadPriority (Function)
In french: ThreadPriorité
Returns or modifies the priority level of a thread.
Syntax

Retrieving the priority level of a thread Hide the details

<Result> = ThreadPriority(<Thread name>)
<Result>: Constant
  • -1 if the thread does not exist
  • Current priority level of thread:
    PriorityHighHigh priority.
    PriorityLowLow priority.
    PriorityNormalStandard priority.
<Thread name>: Character string
Name of thread whose priority is requested. This name is given when running the thread (ThreadExecute).

Modifying the priority level of a thread Hide the details

<Result> = ThreadPriority(<Thread name> , <Priority>)
<Result>: Constant
Priority level of thread before running the function:
PriorityHighHigh priority.
PriorityLowLow priority.
PriorityNormalStandard priority.
<Thread name>: Character string
Name of thread whose priority must be modified. This name is given when running the thread (ThreadExecute).
<Priority>: Constant
New priority level for the thread:
PriorityHighHigh priority.
PriorityLowLow priority.
PriorityNormalStandard priority.
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