mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Make sure context switch end time wasn't set already.
This commit is contained in:
parent
a20c6604c3
commit
bdb8516d04
@ -4371,6 +4371,7 @@ void Worker::ProcessContextSwitch( const QueueContextSwitch& ev )
|
||||
assert( !data.empty() );
|
||||
auto& item = data.back();
|
||||
assert( item.Start() <= time );
|
||||
assert( item.End() == -1 );
|
||||
item.SetEnd( time );
|
||||
item.SetReason( ev.reason );
|
||||
item.SetState( ev.state );
|
||||
|
Loading…
Reference in New Issue
Block a user