Skip to content

Commit 3d6603c

Browse files
committed
cpu_flag::measure
1 parent e052110 commit 3d6603c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

rpcs3/Emu/CPU/CPUThread.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

rpcs3/Emu/CPU/CPUThread.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)