Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.Core/Operations/OperationRepairLayers.cs')
-rw-r--r--UVtools.Core/Operations/OperationRepairLayers.cs10
1 files changed, 2 insertions, 8 deletions
diff --git a/UVtools.Core/Operations/OperationRepairLayers.cs b/UVtools.Core/Operations/OperationRepairLayers.cs
index 68c84b0..f1824b6 100644
--- a/UVtools.Core/Operations/OperationRepairLayers.cs
+++ b/UVtools.Core/Operations/OperationRepairLayers.cs
@@ -182,10 +182,7 @@ namespace UVtools.Core.Operations
bytes[image.GetPixelPos(issuePixel)] = 0;
}
- lock (progress.Mutex)
- {
- progress++;
- }
+ progress.LockAndIncrement();
}
var nextLayerIndex = group.Key + 1;
@@ -287,10 +284,7 @@ namespace UVtools.Core.Operations
image.Dispose();
}
- lock (progress.Mutex)
- {
- progress++;
- }
+ progress.LockAndIncrement();
});
}