static int heartbeat_count;
static int heartbeat_task;
+bool filesys_heartbeat(void)
+{
+ return heartbeat_count > 0;
+}
+
// This uses filesystem process to reduce resource usage
void setsystime (void)
{
extern void filesys_flush_cache (void);
extern void filesys_free_handles (void);
extern void filesys_vsync (void);
+extern bool filesys_heartbeat(void);
extern void filesys_install (void);
extern void filesys_install_code (void);
#include <windows.h>
+#include "options.h"
#include "traps.h"
#include "clipboard_win32.h"
#include "clipboard.h"
#include "keybuf.h"
+#include "memory.h"
+#include "autoconf.h"
-#include "options.h"
#include "threaddep/thread.h"
#include "memory.h"
#include "native2amiga_api.h"
static uae_u32 to_amiga_start_cb(TrapContext *ctx, void *ud)
{
+ if (!filesys_heartbeat())
+ return 0;
if (trap_get_long(ctx, clipboard_data) != 0)
return 0;
if (clipboard_debug) {
#if DEBUG_CLIP > 0
write_log (_T("clipboard: read windows clipboard\n"));
#endif
+ if (!filesys_heartbeat())
+ return;
if (!OpenClipboard (hwnd))
return;
f = 0;
{
if (!signaling || !clipboard_data)
return;
+ if (!filesys_heartbeat())
+ return;
vdelay--;
if (vdelay > 0)
return;