GeneralUtilsPerformSyncedAction Method (Action, Object, Boolean) |
Performs the specified action, either inside a lock on syncRoot if isSynchronized is true, or normally, if isSynchronized is false.
Namespace:
SD.Tools.Algorithmia.UtilityClasses
Assembly:
SD.Tools.Algorithmia (in SD.Tools.Algorithmia.dll) Version: 1.3.3.0 (1.3.18.0209)
Syntax public static void PerformSyncedAction(
Action toPerform,
Object syncRoot,
bool isSynchronized
)
Public Shared Sub PerformSyncedAction (
toPerform As Action,
syncRoot As Object,
isSynchronized As Boolean
)
Parameters
- toPerform
- Type: SystemAction
To perform. - syncRoot
- Type: SystemObject
The synchronize root to lock on. - isSynchronized
- Type: SystemBoolean
if set to true the caller is synchronized.
See Also