ELinks 0.18.0
heartbeat.c File Reference
#include <sys/time.h>
#include <signal.h>
#include "elinks.h"
#include "config/options.h"
#include "document/view.h"
#include "js/ecmascript.h"
#include "js/quickjs.h"
#include "js/quickjs/heartbeat.h"
#include "osdep/signals.h"
#include "session/session.h"
#include "util/lists.h"
#include "util/math.h"
#include "util/memory.h"
#include "viewer/text/vs.h"
Include dependency graph for heartbeat.c:

Functions

int js_heartbeat_callback (JSRuntime *rt, void *opaque)
void check_heartbeats (void *data)
struct heartbeatadd_heartbeat (struct ecmascript_interpreter *interpreter)
void done_heartbeat (struct heartbeat *hb)

Variables

static struct heartbeat list heartbeats = { D_LIST_HEAD_EL(heartbeats) }
static struct itimerval heartbeat_timer = { { 1, 0 }, { 1, 0 } }

Function Documentation

◆ add_heartbeat()

struct heartbeat * add_heartbeat ( struct ecmascript_interpreter * interpreter)

◆ check_heartbeats()

void check_heartbeats ( void * data)

◆ done_heartbeat()

void done_heartbeat ( struct heartbeat * hb)

◆ js_heartbeat_callback()

int js_heartbeat_callback ( JSRuntime * rt,
void * opaque )

Variable Documentation

◆ heartbeat_timer

struct itimerval heartbeat_timer = { { 1, 0 }, { 1, 0 } }
static

◆ heartbeats

struct heartbeat list heartbeats = { D_LIST_HEAD_EL(heartbeats) }
static