Merge pull request #44881 from azat/concurrent-bounded-queue-fix

Fix ConcurrentBoundedQueue::emplace() return value in case of finished queue
This commit is contained in:
Maksim Kita 2023-01-04 15:44:54 +03:00 committed by GitHub
commit 2482acc600
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,8 +109,7 @@ public:
template <typename... Args>
[[nodiscard]] bool emplace(Args &&... args)
{
emplaceImpl(std::nullopt /* timeout in milliseconds */, std::forward<Args...>(args...));
return true;
return emplaceImpl(std::nullopt /* timeout in milliseconds */, std::forward<Args...>(args...));
}
/// Returns false if queue is finished and empty