]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2831] described implementation-specific differences of setNamedAddress.
authorJINMEI Tatuya <jinmei@isc.org>
Tue, 9 Apr 2013 21:52:53 +0000 (14:52 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Tue, 9 Apr 2013 21:52:53 +0000 (14:52 -0700)
src/lib/util/memory_segment_local.h
src/lib/util/memory_segment_mapped.h

index 26fdd00ca0467e838ae6506bfabd57611e59f669..2c09fa7f4c6705db9665bb7bd37c60fc7d4213db 100644 (file)
@@ -76,6 +76,11 @@ public:
     ///
     /// This version does not validate the given address to see whether it
     /// belongs to this segment.
+    ///
+    /// This implementation of this method always returns \c false (but the
+    /// application should expect a return value of \c true unless it knows
+    /// the memory segment class is \c MemorySegmentLocal and needs to
+    /// exploit the fact).
     virtual bool setNamedAddress(const char* name, void* addr);
 
     /// \brief Local segment version of clearNamedAddress.
index 3ced535437f7511280443b11097906bdbbe566ec..8b2fafb781fab3d7668066f93b6ea97796d58c6e 100644 (file)
@@ -134,7 +134,8 @@ 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.
+    /// This version can actually return true (see also \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 InvalidOperation will be thrown.