SynchronizedOperationBaseRun Method

Executes the action on current thread or marks the operation as pending if the operation is already running.

Definition

Namespace: Gemstone.Threading.SynchronizedOperations
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.110 -- Release Build+13c244059615c58a533059438f38d7e59ef0c2ea
public void Run(
	bool runPendingSynchronously = false
)

Parameters

runPendingSynchronously  Boolean  (Optional)
Defines synchronization mode for running any pending operation.

Implements

ISynchronizedOperationRun(Boolean)

Remarks

When the operation is marked as pending, operation will run again after currently running operation has completed. This is useful if an update has invalidated the operation that is currently running and will therefore need to be run again.

When runPendingSynchronously is true, this method will not guarantee that control will be returned to the thread that called it; if other threads continuously mark the operation as pending, this thread will continue to run the operation indefinitely on the calling thread.

See Also