PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
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 attribute <critical section>.

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

CriticalSection([<Section name>])
<Section name>: Optional character string (with quotes)
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 string ("") are different.
Component : wd250vm.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment