diff --git a/PowerThreadPool/PowerThreadPool.csproj b/PowerThreadPool/PowerThreadPool.csproj index b7399e9..1e8417d 100644 --- a/PowerThreadPool/PowerThreadPool.csproj +++ b/PowerThreadPool/PowerThreadPool.csproj @@ -7,7 +7,7 @@ disable PowerThreadPool - An comprehensive and efficient lock-free thread pool with granular work control, flexible concurrency, and robust error handling, alongside an easy-to-use API for diverse task submissions. + A comprehensive and efficient lock-free thread pool with granular work control, flexible concurrency, and robust error handling, alongside an easy-to-use API for diverse task submissions. csharp;net6;thread;thread-pool;threadpool;coroutine;task;async;dotnet;.net; ZjzMisaka https://github.com/ZjzMisaka/PowerThreadPool diff --git a/PowerThreadPool/Works/WorkBase.cs b/PowerThreadPool/Works/WorkBase.cs index d29cd18..35a97d2 100644 --- a/PowerThreadPool/Works/WorkBase.cs +++ b/PowerThreadPool/Works/WorkBase.cs @@ -10,7 +10,7 @@ internal abstract class WorkBase { internal string ID { get; set; } internal Worker Worker { get; set; } - internal int _executeCount; + internal volatile int _executeCount; internal int ExecuteCount { get => _executeCount;