diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-02-13 12:55:05 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-02-13 12:55:05 -0500 |
commit | 691d271b2e2e4d3f7c80a86f6de59f016171b8ea (patch) | |
tree | d90382b109e37650a1182069af0a70fdb94c8ab1 | |
parent | 67d59d7d1ffa058280471154b8185b5420334458 (diff) | |
download | tor-691d271b2e2e4d3f7c80a86f6de59f016171b8ea.tar.gz tor-691d271b2e2e4d3f7c80a86f6de59f016171b8ea.zip |
Re-order thread initialization to follow logging, and remove a comment.
lib/log no longer uses lib/thread; lib/log only uses lib/lock, which
is at a lower level.
-rw-r--r-- | src/app/main/subsystem_list.c | 2 | ||||
-rw-r--r-- | src/lib/thread/compat_threads.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/app/main/subsystem_list.c b/src/app/main/subsystem_list.c index 6784ebe8a0..bb15b17365 100644 --- a/src/app/main/subsystem_list.c +++ b/src/app/main/subsystem_list.c @@ -46,8 +46,8 @@ const subsys_fns_t *tor_subsystems[] = { &sys_torerr, &sys_wallclock, - &sys_threads, &sys_logging, + &sys_threads, &sys_time, diff --git a/src/lib/thread/compat_threads.c b/src/lib/thread/compat_threads.c index d56e8a3f76..21125bddad 100644 --- a/src/lib/thread/compat_threads.c +++ b/src/lib/thread/compat_threads.c @@ -130,8 +130,6 @@ subsys_threads_initialize(void) const subsys_fns_t sys_threads = { .name = "threads", .supported = true, - /* Threads is used by logging, which is a diagnostic feature, we want it to - * init right after low-level error handling and approx time. */ - .level = -95, + .level = -89, .initialize = subsys_threads_initialize, }; |