CriticalSection

Description:              This statement marks a section of a module as a critical section and will not allow interruption of its execution by other threads.

Returns:                    Nothing

Usage:                       Script

Format:                      CriticalSection(Statement1, Statement2, [Statement3, …])

Parameters:             Statement1, Statement2, Statement3, …    { text }  { required }  { no default: }

                                                Any expressions to be executed. Any number of parameters may be used.

Comments:               This statement works in a manner similar to Execute, but on the threaded level.

Example:

If 1 Main;

[

  IfThen(Valid(level), 

         CriticalSection(temp = a, 

                         a = b, 

                         b = temp ) ); 

]

See Also:

Execute