summaryrefslogtreecommitdiff
path: root/src/or/scheduler.h
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2014-10-07 09:53:57 -0700
committerAndrea Shepard <andrea@torproject.org>2014-10-07 09:53:57 -0700
commit12b6c7df4aaf3224bc5649ef69a06dccc58ae961 (patch)
tree6568f9872c0d47fe67e7ed060da809f8312f684e /src/or/scheduler.h
parenta28cfa128f55c64cfd9562dff7e3b5515d1615ad (diff)
downloadtor-12b6c7df4aaf3224bc5649ef69a06dccc58ae961.tar.gz
tor-12b6c7df4aaf3224bc5649ef69a06dccc58ae961.zip
Make queue thresholds and flush size for global scheduler into config options
Diffstat (limited to 'src/or/scheduler.h')
-rw-r--r--src/or/scheduler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/scheduler.h b/src/or/scheduler.h
index 8854d5a508..404776b18b 100644
--- a/src/or/scheduler.h
+++ b/src/or/scheduler.h
@@ -34,6 +34,9 @@ void scheduler_adjust_queue_size(channel_t *chan, char dir, uint64_t adj);
/* Notify scheduler that a channel's queue position may have changed */
void scheduler_touch_channel(channel_t *chan);
+/* Adjust the watermarks from config file*/
+void scheduler_set_watermarks(uint32_t lo, uint32_t hi, uint32_t max_flush);
+
/* Things only scheduler.c and its test suite should see */
#ifdef SCHEDULER_PRIVATE_