]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2831] more clarified when mapped setNamedAddress returns true.
authorJINMEI Tatuya <jinmei@isc.org>
Fri, 12 Apr 2013 23:31:01 +0000 (16:31 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Fri, 12 Apr 2013 23:31:01 +0000 (16:31 -0700)
src/lib/util/memory_segment_mapped.h

index 476974c38a58012b39899f915ebc7881b545a743..142d2b7924fec82c54b5ecf1af6a06657f86f763 100644 (file)
@@ -163,8 +163,11 @@ public:
     /// This implementation detects if \c addr is invalid (see the base class
     /// description) and throws \c MemorySegmentError in that case.
     ///
-    /// This version can actually return true (see also \c MemorySegmentLocal
-    /// version of the method).
+    /// This version of method should normally return false.  However,
+    /// it internally allocates memory in the segment for the name and
+    /// address to be stored, which can require segment extension, just like
+    /// allocate().  So it's possible to return true unlike
+    /// \c MemorySegmentLocal version of the method.
     ///
     /// This method cannot be called if the segment object is created in the
     /// read-only mode; in that case MemorySegmentError will be thrown.