]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2831] more explicitly clarify passing NULL to setNamedAddress.
authorJINMEI Tatuya <jinmei@isc.org>
Tue, 9 Apr 2013 21:20:57 +0000 (14:20 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Tue, 9 Apr 2013 21:20:57 +0000 (14:20 -0700)
src/lib/util/memory_segment.h

index e61f6d6c0772407130fb9a9927a77d68afdb3404..1533613df0f3d8e8572481182d99165d8a809a52 100644 (file)
@@ -159,7 +159,11 @@ public:
     /// to \c allocate().  The actual implementation is encouraged to detect
     /// violation of this restriction and signal it with an exception, but
     /// it's not an API requirement.  It's generally the caller's
-    /// responsibility to meet the restriction.
+    /// responsibility to meet the restriction.  Note that NULL is allowed
+    /// as \c addr even if it wouldn't be considered to "belong to" the
+    /// segment in its normal sense; it can be used to indicate that memory
+    /// has not been allocated for the specified name.  A subsequent call
+    /// to \c getNamedAddress() will return NULL for that name.
     ///
     /// \note Naming an address is intentionally separated from allocation
     /// so that, for example, one module of a program can name a memory