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.
This commit is contained in:
JosJuice 2015-05-01 12:17:39 +02:00
parent 9348b2e1a6
commit 9851bd818d
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}