mirror of
https://github.com/holub/mame
synced 2025-10-07 01:16:22 +03:00
RIP timer_pulse (nw)
This commit is contained in:
parent
d7bb52bd3c
commit
092c8be896
@ -593,18 +593,6 @@ void device_scheduler::timer_set(const attotime &duration, timer_expired_delegat
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------
|
|
||||||
// timer_pulse - allocate an anonymous non-device
|
|
||||||
// timer and set it to go off at the given
|
|
||||||
// frequency
|
|
||||||
//-------------------------------------------------
|
|
||||||
|
|
||||||
void device_scheduler::timer_pulse(const attotime &period, timer_expired_delegate callback, int param, void *ptr)
|
|
||||||
{
|
|
||||||
m_timer_allocator.alloc()->init(machine(), callback, ptr, false).adjust(period, param, period);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
// timer_alloc - allocate a global device timer
|
// timer_alloc - allocate a global device timer
|
||||||
// and return a pointer
|
// and return a pointer
|
||||||
|
@ -134,7 +134,6 @@ public:
|
|||||||
// timers, specified by callback/name
|
// timers, specified by callback/name
|
||||||
emu_timer *timer_alloc(timer_expired_delegate callback, void *ptr = nullptr);
|
emu_timer *timer_alloc(timer_expired_delegate callback, void *ptr = nullptr);
|
||||||
void timer_set(const attotime &duration, timer_expired_delegate callback, int param = 0, void *ptr = nullptr);
|
void timer_set(const attotime &duration, timer_expired_delegate callback, int param = 0, void *ptr = nullptr);
|
||||||
void timer_pulse(const attotime &period, timer_expired_delegate callback, int param = 0, void *ptr = nullptr);
|
|
||||||
void synchronize(timer_expired_delegate callback = timer_expired_delegate(), int param = 0, void *ptr = nullptr) { timer_set(attotime::zero, callback, param, ptr); }
|
void synchronize(timer_expired_delegate callback = timer_expired_delegate(), int param = 0, void *ptr = nullptr) { timer_set(attotime::zero, callback, param, ptr); }
|
||||||
|
|
||||||
// timers, specified by device/id; generally devices should use the device_t methods instead
|
// timers, specified by device/id; generally devices should use the device_t methods instead
|
||||||
|
Loading…
Reference in New Issue
Block a user