From 237ab8ffc6ae4220fd3762eecca6b49d11e6980e Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Sat, 15 May 2004 16:21:37 +0000 Subject: [PATCH] Delay_usec() for BeOS too --- BasiliskII/src/BeOS/sysdeps.h | 3 +++ BasiliskII/src/BeOS/timer_beos.cpp | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/BasiliskII/src/BeOS/sysdeps.h b/BasiliskII/src/BeOS/sysdeps.h index 434768eb..8ce86a94 100644 --- a/BasiliskII/src/BeOS/sysdeps.h +++ b/BasiliskII/src/BeOS/sysdeps.h @@ -80,6 +80,9 @@ typedef uae_u32 uaecptr; typedef uint32 uintptr; typedef int32 intptr; +/* Timing functions */ +extern void Delay_usec(uint32 usec); + // UAE CPU defines #ifdef __i386__ diff --git a/BasiliskII/src/BeOS/timer_beos.cpp b/BasiliskII/src/BeOS/timer_beos.cpp index a5aaf374..66782de7 100644 --- a/BasiliskII/src/BeOS/timer_beos.cpp +++ b/BasiliskII/src/BeOS/timer_beos.cpp @@ -120,3 +120,13 @@ int32 timer_host2mac_time(tm_time_t hosttime) else return -hosttime; // Time in negative microseconds } + + +/* + * Delay by specified number of microseconds (<1 second) + */ + +void Delay_usec(uint32 usec) +{ + snooze(usec); +}