From 9851bd818d85ef0bce95e138a3d3c1ed0b40398e Mon Sep 17 00:00:00 2001 From: JosJuice Date: Fri, 1 May 2015 12:17:39 +0200 Subject: [PATCH] CoreTiming: Add assert to ScheduleEvent_Immediate My PR with ScheduleEvent_Immediate and magumagu's PR with the asserts were made around the same time, so this function never got an assert. --- Source/Core/Core/CoreTiming.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/Core/CoreTiming.cpp b/Source/Core/Core/CoreTiming.cpp index 041c3b150e..c6871f69c1 100644 --- a/Source/Core/Core/CoreTiming.cpp +++ b/Source/Core/Core/CoreTiming.cpp @@ -236,6 +236,7 @@ void ScheduleEvent_Threadsafe(int cyclesIntoFuture, int event_type, u64 userdata // Executes an event immediately, then returns. void ScheduleEvent_Immediate(int event_type, u64 userdata) { + _assert_msg_(POWERPC, Core::IsCPUThread(), "ScheduleEvent_Immediate from wrong thread"); event_types[event_type].callback(userdata, 0); }