Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove a teshsuite example that is superseeded by a proper example
[simgrid.git] / examples / s4u / app-bittorrent / s4u_tracker.cpp
index 5a30b19..1b8e3e4 100644 (file)
@@ -31,8 +31,8 @@ Tracker::Tracker(std::vector<std::string> args)
 void Tracker::operator()()
 {
   simgrid::s4u::CommPtr comm = nullptr;
+  void* received;
   while (simgrid::s4u::Engine::getClock() < deadline) {
-    void* received;
     if (comm == nullptr)
       comm = mailbox->get_async(&received);
     if (comm->test()) {
@@ -66,6 +66,5 @@ void Tracker::operator()()
       simgrid::s4u::this_actor::sleep_for(1);
     }
   }
-  // TODO See if some cleanup is needed
   XBT_INFO("Tracker is leaving");
 }