summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-12-17 07:17:50 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-12-17 07:17:50 +0000
commit449da4bc62a76ac132892d0f9e7e506fdf5eb586 (patch)
treea8d051d382dd63f336931c5c4255f9e47deffd15
parenta060dbac82b8c91b13b8f55211aa5a97e697c62c (diff)
Place schedule thing back, will put it back after release (nw)
-rw-r--r--src/emu/schedule.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/schedule.c b/src/emu/schedule.c
index 28e5315b19f..837e0228d30 100644
--- a/src/emu/schedule.c
+++ b/src/emu/schedule.c
@@ -301,7 +301,7 @@ void emu_timer::register_save()
// period
//-------------------------------------------------
-inline void emu_timer::schedule_next_period()
+void emu_timer::schedule_next_period()
{
// advance by one period
m_start = m_expire;
@@ -400,7 +400,7 @@ bool device_scheduler::can_save() const
{
// if any live temporary timers exit, fail
for (emu_timer *timer = m_timer_list; timer != NULL; timer = timer->next())
- if (timer->m_temporary && timer->expire().is_never())
+ if (timer->m_temporary && timer->expire() != attotime::never)
{
logerror("Failed save state attempt due to anonymous timers:\n");
dump_timers();
@@ -679,7 +679,7 @@ void device_scheduler::postload()
emu_timer &timer = *m_timer_list;
// temporary timers go away entirely (except our special never-expiring one)
- if (timer.m_temporary && timer.expire().is_never())
+ if (timer.m_temporary && timer.expire() != attotime::never)
m_timer_allocator.reclaim(timer.release());
// permanent ones get added to our private list
@@ -756,7 +756,7 @@ void device_scheduler::rebuild_execute_list()
attotime min_quantum = machine().config().m_minimum_quantum;
// if none specified default to 60Hz
- if (min_quantum.is_zero())
+ if (min_quantum == attotime::zero)
min_quantum = attotime::from_hz(60);
// if the configuration specifies a device to make perfect, pick that as the minimum
@@ -879,7 +879,7 @@ emu_timer &device_scheduler::timer_list_remove(emu_timer &timer)
// scheduling quanta
//-------------------------------------------------
-inline void device_scheduler::execute_timers()
+void device_scheduler::execute_timers()
{
// if the current quantum has expired, find a new one
while (m_basetime >= m_quantum_list.first()->m_expire)
@@ -893,7 +893,7 @@ inline void device_scheduler::execute_timers()
// if this is a one-shot timer, disable it now
emu_timer &timer = *m_timer_list;
bool was_enabled = timer.m_enabled;
- if (timer.m_period.is_zero() || timer.m_period.is_never())
+ if (timer.m_period == attotime::zero || timer.m_period == attotime::never)
timer.m_enabled = false;
// set the global state of which callback we're in