Related refactoring to updated of ThrottleList to use new Scheduler.

This commit is contained in:
Jari Sundell
2025-05-12 10:38:07 +02:00
committed by GitHub
parent 6d888c008d
commit 9ff373fe58
33 changed files with 1005 additions and 230 deletions
+3 -3
View File
@@ -159,7 +159,9 @@ main(int argc, char** argv) {
srandom(random_seed);
srand48(random_seed);
// Initialize logging:
torrent::Poll::slot_create_poll() = [](){ return create_poll(); };
torrent::initialize_main_thread();
torrent::log_initialize();
control = new Control;
@@ -188,8 +190,6 @@ main(int argc, char** argv) {
torrent::log_add_group_output(torrent::LOG_NOTICE, "important");
torrent::log_add_group_output(torrent::LOG_INFO, "complete");
torrent::Poll::slot_create_poll() = [](){ return create_poll(); };
torrent::initialize();
torrent::set_main_thread_slots(std::bind(&client_perform));