Tor  0.4.7.0-alpha-dev
Macros | Functions | Variables
scheduler_vanilla.c File Reference

"Vanilla" (pre-KIST) cell scheduler code. More...

#include "core/or/or.h"
#include "app/config/config.h"
#include "core/or/channel.h"
#include "core/or/scheduler.h"

Go to the source code of this file.

Macros

#define CHANNEL_OBJECT_PRIVATE
 
#define SCHEDULER_PRIVATE
 
#define MAX_FLUSH_CELLS   1000
 

Functions

static int have_work (void)
 
static void vanilla_scheduler_schedule (void)
 
static void vanilla_scheduler_run (void)
 
scheduler_tget_vanilla_scheduler (void)
 

Variables

static scheduler_t vanilla_scheduler
 

Detailed Description

"Vanilla" (pre-KIST) cell scheduler code.

Definition in file scheduler_vanilla.c.

Function Documentation

◆ vanilla_scheduler_schedule()

static void vanilla_scheduler_schedule ( void  )
static

Re-trigger the scheduler in a way safe to use from the callback

Definition at line 41 of file scheduler_vanilla.c.

Variable Documentation

◆ vanilla_scheduler

scheduler_t vanilla_scheduler
static
Initial value:
= {
.type = SCHEDULER_VANILLA,
.free_all = NULL,
.on_channel_free = NULL,
.init = NULL,
.on_new_consensus = NULL,
.run = vanilla_scheduler_run,
.on_new_options = NULL,
}
static void vanilla_scheduler_schedule(void)

Definition at line 164 of file scheduler_vanilla.c.