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.
This commit is contained in:
Nick Mathewson 2020-02-13 12:55:05 -05:00
parent 67d59d7d1f
commit 691d271b2e
2 changed files with 2 additions and 4 deletions

View File

@ -46,8 +46,8 @@ const subsys_fns_t *tor_subsystems[] = {
&sys_torerr, &sys_torerr,
&sys_wallclock, &sys_wallclock,
&sys_threads,
&sys_logging, &sys_logging,
&sys_threads,
&sys_time, &sys_time,

View File

@ -130,8 +130,6 @@ subsys_threads_initialize(void)
const subsys_fns_t sys_threads = { const subsys_fns_t sys_threads = {
.name = "threads", .name = "threads",
.supported = true, .supported = true,
/* Threads is used by logging, which is a diagnostic feature, we want it to .level = -89,
* init right after low-level error handling and approx time. */
.level = -95,
.initialize = subsys_threads_initialize, .initialize = subsys_threads_initialize,
}; };