diff options
| author | robot-piglet <[email protected]> | 2025-12-18 06:04:47 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2025-12-18 06:25:18 +0300 |
| commit | 755bf3aa4c57d54436af9691fdbbf0a6b9cb6dc6 (patch) | |
| tree | cb4f3a7d8c34b0039a51dd630a2ad2f254566f16 /library/cpp/threading/equeue | |
| parent | 68a8a935c3efe554d76a199500a306cfa9de2fc0 (diff) | |
Intermediate changes
commit_hash:c4281bc281cdaef6bf0188500e82848c582cc5ad
Diffstat (limited to 'library/cpp/threading/equeue')
| -rw-r--r-- | library/cpp/threading/equeue/fast/equeue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/threading/equeue/fast/equeue.h b/library/cpp/threading/equeue/fast/equeue.h index a24f0e83a9f..0463507a55b 100644 --- a/library/cpp/threading/equeue/fast/equeue.h +++ b/library/cpp/threading/equeue/fast/equeue.h @@ -111,7 +111,7 @@ public: while (true) { IObjectInQueue* job = nullptr; - while (thisThreadId >= ActiveThreadCount_) { + while (thisThreadId >= ActiveThreadCount_ && !Stopped_) { Sleep(TDuration::Seconds(1)); } @@ -146,7 +146,7 @@ public: } void SetCurrentMaxQueueSize(size_t v) { - Y_ENSURE(v < MaxQueueSize_); + Y_ENSURE(v <= MaxQueueSize_); CurrentMaxQueueSize_ = v; } |
