aboutsummaryrefslogtreecommitdiff
path: root/src/or/scheduler.h
diff options
context:
space:
mode:
authorMatt Traudt <sirmatt@ksu.edu>2017-09-13 12:47:02 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-09-15 11:40:59 -0400
commit7f1d6430833a15a1ec806f9d17babc7d653b08ac (patch)
tree4893f64bec50f88e70f23eb7663b469e05180708 /src/or/scheduler.h
parent61fc9c41ad8241be06587f28d1542c0caba55d1b (diff)
downloadtor-7f1d6430833a15a1ec806f9d17babc7d653b08ac.tar.gz
tor-7f1d6430833a15a1ec806f9d17babc7d653b08ac.zip
sched: validate KIST sched options
Diffstat (limited to 'src/or/scheduler.h')
-rw-r--r--src/or/scheduler.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/or/scheduler.h b/src/or/scheduler.h
index 6cf75c585a..0d82352734 100644
--- a/src/or/scheduler.h
+++ b/src/or/scheduler.h
@@ -83,6 +83,20 @@ typedef struct scheduler_s {
} scheduler_t;
/*****************************************************************************
+ * Globally visible scheduler variables/values
+ *
+ * These are variables/constants that all of Tor should be able to see.
+ *****************************************************************************/
+
+/* Default interval that KIST runs (in ms). */
+#define KIST_SCHED_RUN_INTERVAL_DEFAULT 10
+/* Minimum interval that KIST runs. This value disables KIST. */
+#define KIST_SCHED_RUN_INTERVAL_MIN 0
+/* Maximum interval that KIST runs (in ms). */
+#define KIST_SCHED_RUN_INTERVAL_MAX 100
+
+
+/*****************************************************************************
* Globally visible scheduler functions
*
* These functions are how the rest of Tor communicates with the scheduling