mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Dequeue items from a single thread.
This commit is contained in:
parent
c7f769c52b
commit
142ef53b42
@ -1690,7 +1690,8 @@ void Profiler::ClearQueues( moodycamel::ConsumerToken& token )
|
|||||||
|
|
||||||
Profiler::DequeueStatus Profiler::Dequeue( 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 )
|
if( sz > 0 )
|
||||||
{
|
{
|
||||||
auto end = m_itemBuf + sz;
|
auto end = m_itemBuf + sz;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user