mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-22 13:31:08 +00:00
- fixed Delay_usec() on IRIX
- xpram_func() calls Delay_usec() with a time of <1 second
This commit is contained in:
parent
348606cc5d
commit
ed6e74340c
@ -773,7 +773,7 @@ static void *xpram_func(void *arg)
|
||||
{
|
||||
while (!xpram_thread_cancel) {
|
||||
for (int i=0; i<60 && !xpram_thread_cancel; i++)
|
||||
Delay_usec(1000000);
|
||||
Delay_usec(999999);
|
||||
xpram_watchdog();
|
||||
}
|
||||
return NULL;
|
||||
@ -880,7 +880,7 @@ void Delay_usec(uint32 usec)
|
||||
#if defined(linux)
|
||||
tv.tv_sec = 0;
|
||||
tv.tv_usec = usec;
|
||||
#elif defined(__FreeBSD__)
|
||||
#elif defined(__FreeBSD__) || defined(sgi)
|
||||
elapsed.tv_sec = 0;
|
||||
elapsed.tv_nsec = usec * 1000;
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user