mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Pass function objects through const references.
This commit is contained in:
@@ -5,7 +5,7 @@ RunQueue::RunQueue()
|
||||
{
|
||||
}
|
||||
|
||||
void RunQueue::Queue( std::function<void()> cb, bool forceDelay )
|
||||
void RunQueue::Queue( const std::function<void()>& cb, bool forceDelay )
|
||||
{
|
||||
if( !forceDelay && std::this_thread::get_id() == m_mainThread )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user