summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2014-11-18 19:31:11 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2014-11-18 19:31:11 +0000
commit1ddf8215cfde443a48043274cef17e45c68f0c91 (patch)
treedaba8e9677d43c67dca26e556f2c4662380a61df /amiga/gui.c
parent669df172ece6dc75608de701fa05fb77612352a1 (diff)
downloadnetsurf-1ddf8215cfde443a48043274cef17e45c68f0c91.tar.gz
netsurf-1ddf8215cfde443a48043274cef17e45c68f0c91.tar.bz2
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.
Diffstat (limited to 'amiga/gui.c')
-rw-r--r--amiga/gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index e76a01e66..2419e23b8 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -93,7 +93,6 @@
#include "utils/utils.h"
#include "utils/nsurl.h"
#include "utils/file.h"
-#include "content/backing_store.h"
#include "content/fetchers.h"
#include "content/fetchers/resource.h"
#include "content/urldb.h"
@@ -126,6 +125,7 @@
#include "amiga/file.h"
#include "amiga/filetype.h"
#include "amiga/font.h"
+#include "amiga/fs_backing_store.h"
#include "amiga/gui_options.h"
#include "amiga/help.h"
#include "amiga/history.h"
@@ -5311,7 +5311,7 @@ int main(int argc, char** argv)
.utf8 = amiga_utf8_table,
.search = amiga_search_table,
.search_web = &amiga_search_web_table,
- .llcache = filesystem_llcache_table,
+ .llcache = amiga_filesystem_llcache_table,
};
signal(SIGINT, SIG_IGN);