Parcourir la source

[3971] Using TimerMgrPtr returned by the TimerMgr.

Marcin Siodelski il y a 9 ans
Parent
commit
e553a15643
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      src/lib/dhcpsrv/memfile_lease_mgr.cc

+ 4 - 1
src/lib/dhcpsrv/memfile_lease_mgr.cc

@@ -116,7 +116,10 @@ private:
     /// @brief A PID of the last executed LFC process.
     pid_t pid_;
 
-    /// @brief Pointer to the Timer Manager.
+    /// @brief Pointer to the timer manager.
+    ///
+    /// We have to hold this pointer here to make sure that the timer
+    /// manager is not destroyed before the lease manager.
     TimerMgrPtr timer_mgr_;
 };