PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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
Enables a name or on-variable critical section in the statement USE ... IN.
Example
// Critical section on a variable
t is array <critical section> of int
USING CriticalSection(t) IN
// Operations on the array by one only thread at a time
...
END
Syntax
Windows

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.
Remark: the automatic critical section and the critical section corresponding to an empty string ("") are different.
Component: wd270.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment