mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
renamed class to osd_watchdog (nw)
This commit is contained in:
parent
1a83c84eae
commit
0bcc96406d
@ -428,7 +428,7 @@ void osd_common_t::init(running_machine &machine)
|
||||
|
||||
if (watchdog_timeout != 0)
|
||||
{
|
||||
m_watchdog = std::make_unique<watchdog>();
|
||||
m_watchdog = std::make_unique<osd_watchdog>();
|
||||
m_watchdog->setTimeout(watchdog_timeout);
|
||||
}
|
||||
}
|
||||
|
@ -282,7 +282,7 @@ protected:
|
||||
input_module* m_lightgun_input;
|
||||
input_module* m_joystick_input;
|
||||
output_module* m_output;
|
||||
std::unique_ptr<watchdog> m_watchdog;
|
||||
std::unique_ptr<osd_watchdog> m_watchdog;
|
||||
std::vector<ui_menu_item> m_sliders;
|
||||
|
||||
private:
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
static void *watchdog_thread(void *param)
|
||||
{
|
||||
watchdog *thiz = (watchdog *) param;
|
||||
osd_watchdog *thiz = (osd_watchdog *) param;
|
||||
|
||||
while (TRUE)
|
||||
{
|
||||
@ -41,7 +41,7 @@ static void *watchdog_thread(void *param)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
watchdog::watchdog(void)
|
||||
osd_watchdog::osd_watchdog(void)
|
||||
: m_event(1,0)
|
||||
{
|
||||
m_do_exit = 0;
|
||||
@ -49,7 +49,7 @@ watchdog::watchdog(void)
|
||||
m_timeout = 60 * osd_ticks_per_second();
|
||||
}
|
||||
|
||||
watchdog::~watchdog(void)
|
||||
osd_watchdog::~osd_watchdog(void)
|
||||
{
|
||||
m_do_exit = 1;
|
||||
m_event.set();
|
||||
@ -57,7 +57,7 @@ watchdog::~watchdog(void)
|
||||
delete m_thread;
|
||||
}
|
||||
|
||||
void watchdog::setTimeout(int timeout)
|
||||
void osd_watchdog::setTimeout(int timeout)
|
||||
{
|
||||
m_timeout = timeout * osd_ticks_per_second();
|
||||
this->reset();
|
||||
|
@ -14,11 +14,11 @@
|
||||
#include <atomic>
|
||||
#include <thread>
|
||||
|
||||
class watchdog
|
||||
class osd_watchdog
|
||||
{
|
||||
public:
|
||||
watchdog(void);
|
||||
~watchdog(void);
|
||||
osd_watchdog(void);
|
||||
~osd_watchdog(void);
|
||||
|
||||
void reset() { m_event.set(); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user