Skip to content

Commit 6cc4676

Browse files
committed
提升性能
1 parent 3693c64 commit 6cc4676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AsyncWorkerCollection/AsyncAutoResetEvent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void Set()
6868
bool result;
6969
lock (_locker)
7070
{
71-
if (_waitQueue.Any())
71+
if (_waitQueue.Count > 0)
7272
{
7373
releaseSource = _waitQueue.Dequeue();
7474
}

0 commit comments

Comments
 (0)