From 1ddf8215cfde443a48043274cef17e45c68f0c91 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Tue, 18 Nov 2014 19:31:11 +0000 Subject: Write out to the backing store asynchronously. Despite the fact AmigaOS filesystems run as separate processes, DOS filesystem writes occur synchronously waiting for the disk write to finish before returning. Here we have effectively taken the core's fs backing store and extended it slightly so the store operation is spun off into a new process, running at a lower task priority than NetSurf itself. This stops the UI pauses that occur shortly after loading pages as NetSurf commits the cache to disk. Somewhat experimental, pending more extensive user testing. --- amiga/fs_backing_store.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 amiga/fs_backing_store.h (limited to 'amiga/fs_backing_store.h') diff --git a/amiga/fs_backing_store.h b/amiga/fs_backing_store.h new file mode 100644 index 000000000..89a67fb79 --- /dev/null +++ b/amiga/fs_backing_store.h @@ -0,0 +1,23 @@ +/* + * Copyright 2014 Chris Young + * + * This file is part of NetSurf, http://www.netsurf-browser.org/ + * + * NetSurf is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * NetSurf is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef AMIGA_FS_BACKING_STORE_H +#define AMIGA_FS_BACKING_STORE_H +extern struct gui_llcache_table *amiga_filesystem_llcache_table; +#endif + -- cgit v1.2.3