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:
@@ -114,7 +114,7 @@ static void AttentionCallback()
|
||||
|
||||
static void DrawContents();
|
||||
|
||||
void RunOnMainThread( std::function<void()> cb, bool forceDelay = false )
|
||||
static void RunOnMainThread( const std::function<void()>& cb, bool forceDelay = false )
|
||||
{
|
||||
mainThreadTasks.Queue( cb, forceDelay );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user