diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2014-11-18 19:31:11 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2014-11-18 19:31:11 +0000 |
commit | 1ddf8215cfde443a48043274cef17e45c68f0c91 (patch) | |
tree | daba8e9677d43c67dca26e556f2c4662380a61df /amiga/fs_backing_store.h | |
parent | 669df172ece6dc75608de701fa05fb77612352a1 (diff) | |
download | netsurf-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/fs_backing_store.h')
-rw-r--r-- | amiga/fs_backing_store.h | 23 |
1 files changed, 23 insertions, 0 deletions
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 <chris@unsatisfactorysoftware.co.uk> + * + * 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 <http://www.gnu.org/licenses/>. + */ + +#ifndef AMIGA_FS_BACKING_STORE_H +#define AMIGA_FS_BACKING_STORE_H +extern struct gui_llcache_table *amiga_filesystem_llcache_table; +#endif + |