Gemstone Threading Library
Show/Hide TOC

# LogicalThreadOperationRunIfPending Method

Starts the operation over at the beginning if the operation is pending or sets the operation state back to not running so it can run again.

## Definition

Namespace: Gemstone.Threading.LogicalThreads
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.159 -- Release Build+94b67ea5187267d7edb4458b634b6580ba7dbb78
C#
View Source Request Example

    public void RunIfPending()

VB
View Source Request Example

    Public Sub RunIfPending

C++
View Source Request Example

    public:
    void RunIfPending()

JavaScript
View Source Request Example

    function RunIfPending();

## Remarks

This method must be called at the end of an operation in order to set the state of the operation back to running or not running so that the operation can run again. The existence of this method makes this implementation different from other synchronized operations in that it requires more diligence on the user's part to signal when the operation is complete. In turn, this allows the user to implement complex operations that may involve asynchronous loops and signaling patterns that would not be possible with the ISynchronizedOperation interface.

## See Also

#### Reference

LogicalThreadOperation Class
Gemstone.Threading.LogicalThreads Namespace