Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge pull request #218 from Takishipp/MSG2S4U
[simgrid.git] / examples / s4u / app-bittorrent / s4u_tracker.cpp
index 7ddd5e0..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()) {