void device_execute_interface::trigger_periodic_interrupt() { // bail if there is no routine if (!suspended(SUSPEND_REASON_HALT | SUSPEND_REASON_RESET | SUSPEND_REASON_DISABLE | SUSPEND_REASON_CLOCK)) { if (!m_timed_interrupt.isnull()) m_timed_interrupt(device()); } }
void device_execute_interface::trigger_periodic_interrupt() { // bail if there is no routine if (!suspended(SUSPEND_REASON_HALT | SUSPEND_REASON_RESET | SUSPEND_REASON_DISABLE)) { if (m_timed_interrupt_legacy != NULL) (*m_timed_interrupt_legacy)(&device()); else if (!m_timed_interrupt.isnull()) m_timed_interrupt(device()); } }