]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#816] Made getObservation usable to check existence
authorFrancis Dupont <fdupont@isc.org>
Sun, 5 Apr 2020 07:44:42 +0000 (09:44 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 23 Apr 2020 21:23:18 +0000 (23:23 +0200)
src/lib/stats/stats_mgr.h

index 66f1c89c2b5596d59e492f4521b87a33024eee82..49ab17ca7e9b7edd8255951d6ba5d3d8134c5bd1 100644 (file)
@@ -246,7 +246,8 @@ public:
 
     /// @brief Returns an observation.
     ///
-    /// Used in testing only. Production code should use @ref get() method.
+    /// Used in testing only. Production code should use @ref get() method
+    /// when the value is dereferenced.
     /// Calls @ref getObservationInternal() method in a thread safe context.
     ///
     /// @param name name of the statistic
@@ -255,8 +256,8 @@ public:
 
     /// @brief Returns an observation in a thread safe context.
     ///
-    /// Used in testing only. Production code should use @ref get() method.
-    /// Should be called in a thread safe context.
+    /// Used in testing only. Production code should use @ref get() method
+    /// when the value is dereferenced. Should be called in a thread safe context.
     ///
     /// @param name name of the statistic
     /// @return Pointer to the Observation object