Merge pull request #2352 from JosJuice/scheduleevent-immediate-assert

CoreTiming: Add assert to ScheduleEvent_Immediate
This commit is contained in:
comex 2015-06-02 20:22:14 -04:00
commit c0e567731a
1 changed files with 1 additions and 0 deletions

View File

@ -243,6 +243,7 @@ void ScheduleEvent_Threadsafe(int cyclesIntoFuture, int event_type, u64 userdata
// Executes an event immediately, then returns. // Executes an event immediately, then returns.
void ScheduleEvent_Immediate(int event_type, u64 userdata) 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); event_types[event_type].callback(userdata, 0);
} }