File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -867,9 +867,9 @@ bool cpu_thread::check_state() noexcept
867867 store = true ;
868868 }
869869
870- if (flags & cpu_flag::notify)
870+ if (flags & ( cpu_flag::notify + cpu_flag::measure) )
871871 {
872- flags -= cpu_flag::notify;
872+ flags -= cpu_flag::notify + cpu_flag::measure ;
873873 store = true ;
874874 }
875875
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ enum class cpu_flag : u32
2828 notify, // Flag meant solely to allow atomic notification on state without changing other flags
2929 yield, // Thread is being requested to yield its execution time if it's running
3030 preempt, // Thread is being requested to preempt the execution of all CPU threads
31+ measure, // Thread must remove the flag as soon as possible, no side effects
3132
3233 dbg_global_pause, // Emulation paused
3334 dbg_pause, // Thread paused
You can’t perform that action at this time.
0 commit comments