mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Use common access-and-insert pattern for VisData.
This commit is contained in:
parent
fddba168c6
commit
fa556d2d65
@ -196,7 +196,12 @@ private:
|
||||
|
||||
tracy_force_inline VisData& Vis( const void* ptr )
|
||||
{
|
||||
return m_visData[ptr];
|
||||
auto it = m_visData.find( ptr );
|
||||
if( it == m_visData.end() )
|
||||
{
|
||||
it = m_visData.emplace( ptr, VisData {} ).first;
|
||||
}
|
||||
return it->second;
|
||||
}
|
||||
|
||||
tracy_force_inline bool& VisibleMsgThread( uint64_t thread )
|
||||
|
Loading…
Reference in New Issue
Block a user