mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08: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() );
|
assert( !data.empty() );
|
||||||
auto& item = data.back();
|
auto& item = data.back();
|
||||||
assert( item.Start() <= time );
|
assert( item.Start() <= time );
|
||||||
|
assert( item.End() == -1 );
|
||||||
item.SetEnd( time );
|
item.SetEnd( time );
|
||||||
item.SetReason( ev.reason );
|
item.SetReason( ev.reason );
|
||||||
item.SetState( ev.state );
|
item.SetState( ev.state );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user