Dequeue items from a single thread.

This commit is contained in:
Bartosz Taudul 2019-07-29 23:44:08 +02:00
parent c7f769c52b
commit 142ef53b42

View File

@ -1690,7 +1690,8 @@ void Profiler::ClearQueues( moodycamel::ConsumerToken& token )
Profiler::DequeueStatus Profiler::Dequeue( moodycamel::ConsumerToken& token )
{
const auto sz = GetQueue().try_dequeue_bulk( token, m_itemBuf, BulkSize );
uint64_t threadId;
const auto sz = GetQueue().try_dequeue_bulk_single( token, m_itemBuf, BulkSize, threadId );
if( sz > 0 )
{
auto end = m_itemBuf + sz;