mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-14 14:49:23 +03:00
Merge branch 'chris/scheduled-fetches' of git://git.netsurf-browser.org/netsurf into chris/scheduled-fetches
This commit is contained in:
commit
83af8b35b2
@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* NetSurf core includes */
|
/* NetSurf core includes */
|
||||||
|
#include "content/hlcache.h"
|
||||||
#include "content/urldb.h"
|
#include "content/urldb.h"
|
||||||
#include "css/utils.h"
|
#include "css/utils.h"
|
||||||
#include "desktop/browser_private.h"
|
#include "desktop/browser_private.h"
|
||||||
@ -2459,8 +2460,14 @@ printf("sig recvd %ld (%ld %ld %ld %ld %ld %ld)\n", signal, winsignal , appsig ,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void ami_gui_fetch_callback(void *p)
|
||||||
|
{
|
||||||
|
hlcache_poll();
|
||||||
|
}
|
||||||
|
|
||||||
void gui_poll(bool active)
|
void gui_poll(bool active)
|
||||||
{
|
{
|
||||||
|
if(active) schedule(0, ami_gui_fetch_callback, NULL);
|
||||||
ami_get_msg();
|
ami_get_msg();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
#include <libwapcaplet/libwapcaplet.h>
|
#include <libwapcaplet/libwapcaplet.h>
|
||||||
|
|
||||||
#include "utils/config.h"
|
#include "utils/config.h"
|
||||||
#include "utils/schedule.h"
|
|
||||||
#include "utils/utsname.h"
|
#include "utils/utsname.h"
|
||||||
#include "content/content_factory.h"
|
#include "content/content_factory.h"
|
||||||
#include "content/fetch.h"
|
#include "content/fetch.h"
|
||||||
@ -240,10 +239,6 @@ nserror netsurf_init(int *pargc,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void netsurf_fetch_callback(void *p)
|
|
||||||
{
|
|
||||||
hlcache_poll();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gui NetSurf main loop.
|
* Gui NetSurf main loop.
|
||||||
@ -251,8 +246,6 @@ static void netsurf_fetch_callback(void *p)
|
|||||||
int netsurf_main_loop(void)
|
int netsurf_main_loop(void)
|
||||||
{
|
{
|
||||||
while (!netsurf_quit) {
|
while (!netsurf_quit) {
|
||||||
if(fetch_active)
|
|
||||||
schedule(0, netsurf_fetch_callback, NULL);
|
|
||||||
gui_poll(fetch_active);
|
gui_poll(fetch_active);
|
||||||
hlcache_poll();
|
hlcache_poll();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user