mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-12 19:31:47 +00:00
Implement deferring items.
This commit is contained in:
parent
a99d74966c
commit
475d151b2d
@ -299,6 +299,14 @@ public:
|
|||||||
{
|
{
|
||||||
return m_isConnected.load( std::memory_order_relaxed );
|
return m_isConnected.load( std::memory_order_relaxed );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tracy_force_inline void DeferItem( const QueueItem& item )
|
||||||
|
{
|
||||||
|
m_deferredLock.lock();
|
||||||
|
auto dst = m_deferredQueue.push_next();
|
||||||
|
memcpy( dst, &item, sizeof( item ) );
|
||||||
|
m_deferredLock.unlock();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user