[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Re-order thread initialization to follow logging, and remove a comment.



commit 691d271b2e2e4d3f7c80a86f6de59f016171b8ea
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Thu Feb 13 12:55:05 2020 -0500

    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.
---
 src/app/main/subsystem_list.c   | 2 +-
 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 6784ebe8a..bb15b1736 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 d56e8a3f7..21125bdda 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,
 };



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits