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
Enables a name or on-variable critical section in the statement USE ... IN.
Example
// Section critique sur une variable
t is array <critical section> of int
USING CriticalSection(t) IN
	// Manipulations sur le tableau par un seul thread en même temps
	...
END
Syntax
iPhone/iPadIOS WidgetApple WatchMac Catalyst

Enabling a critical section on a variable Hide the details

CriticalSection([<Variable name>])
<Variable name>: Any type
Name of WLanguage variable that must be protected in a critical section. This variable must be defined with the <critical section> attribute.

Enables a named critical section on a part of the code Hide the details

CriticalSection([<Section name>])
<Section name>: Optional character string
Identifies the critical section. This parameter is used to identify the protected code sections.
If this parameter is not specified, an automatic critical section is implemented.
Note: the automatic critical section and the critical section corresponding to an empty chain ("") are different..
Component: wd300.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help