I temporarily applied it as a means of testing the revised event loops
in r10040, and accidentally folded it into my final commit instead of
backing it out. Ahem.
git-svn-id: http://svn.tartarus.org/sgt/putty@10042
cda61777-01e9-0310-a592-
d414129be87e
-void stoat_callback(void *ctx)
-{
- static int stoat = 0;
- if (++stoat % 1000 == 0)
- debug(("stoat %d\n", stoat));
- queue_toplevel_callback(stoat_callback, NULL);
-}
-void queue_stoat(void)
-{
- static int stoat = 0;
- if (!stoat) {
- stoat = 1;
- queue_toplevel_callback(stoat_callback, NULL);
- }
-}
-
void queue_toplevel_callback(toplevel_callback_fn_t fn, void *ctx)
{
struct callback *cb;
void queue_toplevel_callback(toplevel_callback_fn_t fn, void *ctx)
{
struct callback *cb;
cb = snew(struct callback);
cb->fn = fn;
cb->ctx = ctx;
cb = snew(struct callback);
cb->fn = fn;
cb->ctx = ctx;
void run_toplevel_callbacks(void)
{
void run_toplevel_callbacks(void)
{
if (cbhead) {
struct callback *cb = cbhead;
/*
if (cbhead) {
struct callback *cb = cbhead;
/*
int toplevel_callback_pending(void)
{
int toplevel_callback_pending(void)
{