Batch.ExitAllSynchronizedSectionsInCurrentSequence

Syntax

Batch.ExitAllSynchronizedSectionsInCurrentSequence( timeoutInSeconds, sequenceContextObj, processMsgs, RTEOccurred, waitRes)

Purpose

Marks the end of all synchronized sections currently entered in the current sequence.

Parameters

timeoutInSeconds As Double

[In] Specifies a timeout in seconds. Pass a negative number to specify that you do not want a timeout.

sequenceContextObj As Object

[In] Specifies the sequence context of the sequence in which the calling step resides. You must use the run-time copy of the sequence in which the step is currently executing.

Note You must pass a sequence context for this method. Using this method to define Batch synchronization is supported only from code modules.

processMsgs As Boolean

[In] Pass True to process Microsoft Windows messages while waiting. When you call this method from an execution, pass True for this parameter. Otherwise, pass False .

RTEOccurred As Boolean

[In] Pass True when the value of RunState.SequenceError.Occurred is True when you exit the section. This parameter causes all threads in a batch to report a run-time error when a thread inside of a One Thread Only section reports a run-time error.

waitRes As WaitResult

[Out] Returns the status of the operation.

See Also

Sequence Context

WaitResult