mirror of
https://github.com/wolfpld/tracy.git
synced 2026-07-20 13:09:40 +00:00
21 lines
427 B
C++
21 lines
427 B
C++
#include "TracyLfq.hpp"
|
|
|
|
namespace tracy
|
|
{
|
|
|
|
LfqBlock* LfqProducerImpl::NextBlock( LfqBlock* tailBlk )
|
|
{
|
|
auto next = m_queue->GetFreeBlock();
|
|
assert( next );
|
|
assert( next->next.load() == nullptr );
|
|
assert( tailBlk->next.load() == nullptr );
|
|
next->thread = m_thread;
|
|
tailBlk->next.store( next );
|
|
m_tail.store( next );
|
|
lfq.dataEnd = next->dataEnd;
|
|
lfq.tail = &next->tail;
|
|
return next;
|
|
}
|
|
|
|
}
|