diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-08-21 12:17:20 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-08-22 10:15:56 -0400 |
commit | 79cad08b4f9afd13a7151b8e15ae6481df82478f (patch) | |
tree | 50a39a29b1da42598c256d3ae540497b20135202 | |
parent | 49b8acc61872a35165cc1375edc4dcdeabfc68b4 (diff) | |
download | tor-79cad08b4f9afd13a7151b8e15ae6481df82478f.tar.gz tor-79cad08b4f9afd13a7151b8e15ae6481df82478f.zip |
Documentation for new cbt accessors
-rw-r--r-- | src/or/circuitstats.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/circuitstats.c b/src/or/circuitstats.c index 0d60a1936f..e7b4b36bbd 100644 --- a/src/or/circuitstats.c +++ b/src/or/circuitstats.c @@ -36,24 +36,31 @@ static int unit_tests = 0; #define unit_tests 0 #endif +/** Return a pointer to the data structure describing our current circuit + * build time history and computations. */ const circuit_build_times_t * get_circuit_build_times(void) { return &circ_times; } +/** As get_circuit_build_times, but return a mutable pointer. */ circuit_build_times_t * get_circuit_build_times_mutable(void) { return &circ_times; } +/** Return the time to wait before actually closing an under-construction, in + * milliseconds. */ double get_circuit_build_close_time_ms(void) { return circ_times.close_ms; } +/** Return the time to wait before giving up on an under-construction circuit, + * in milliseconds. */ double get_circuit_build_timeout_ms(void) { |