Added log messages to scheduler.

This commit is contained in:
Michael Müller
2022-07-26 17:35:32 +02:00
parent f33eb0d32f
commit e0b2605dfe

View File

@@ -5,6 +5,7 @@
#include <mx/system/topology.h> #include <mx/system/topology.h>
#include <thread> #include <thread>
#include <vector> #include <vector>
#include <base/log.h>
using namespace mx::tasking; using namespace mx::tasking;
@@ -64,12 +65,15 @@ void Scheduler::start_and_wait()
worker->join(); worker->join();
} }
Genode::log("All workers finished.");
if constexpr (config::memory_reclamation() != config::None) if constexpr (config::memory_reclamation() != config::None)
{ {
this->_epoch_manager.join(); this->_epoch_manager.join();
// At this point, no task will execute on any resource; // At this point, no task will execute on any resource;
// but the epoch manager has joined, too. Therefore, // but the epoch manager has joined, too. Therefore,
// we will reclaim all memory manually. // we will reclaim all memory manually.
Genode::log("Epoch manager finished. Reclaiming all memory...");
this->_epoch_manager.reclaim_all(); this->_epoch_manager.reclaim_all();
} }
} }