mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 07:24:36 +00:00
Avoid creation of a temporary object.
This commit is contained in:
parent
5037742ab0
commit
5e4eae5c2e
@ -14,7 +14,7 @@ TaskDispatch::TaskDispatch( size_t workers, const char* name )
|
|||||||
m_workers.reserve( workers );
|
m_workers.reserve( workers );
|
||||||
for( size_t i=0; i<workers; i++ )
|
for( size_t i=0; i<workers; i++ )
|
||||||
{
|
{
|
||||||
m_workers.emplace_back( std::thread( [this, name, i]{ SetName( name, i ); Worker(); } ) );
|
m_workers.emplace_back( [this, name, i]{ SetName( name, i ); Worker(); } );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user