summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2017-08-13 10:37:34 -0700
committerThiago Macieira <thiago.macieira@intel.com>2017-08-13 20:47:37 +0000
commitb7bcd03d194495f3e7230e0cd757b04641c633d9 (patch)
tree103ba00cbf8f2164cfa614479c682910ff1c61dc
parent10b46fe47489ae3e711fa52a7281f30aad6a69e7 (diff)
Doc: indicate the QSharedMemory::size() that the size may be bigger
Task-number: QTBUG-62468 Change-Id: I6e9274c1e7444ad48c81fffd14da78718828c4a6 Reviewed-by: Martin Smith <martin.smith@qt.io>
-rw-r--r--src/corelib/kernel/qsharedmemory.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/kernel/qsharedmemory.cpp b/src/corelib/kernel/qsharedmemory.cpp
index 7f185ee9dc..c8ba13c90c 100644
--- a/src/corelib/kernel/qsharedmemory.cpp
+++ b/src/corelib/kernel/qsharedmemory.cpp
@@ -362,6 +362,9 @@ bool QSharedMemory::create(int size, AccessMode mode)
Returns the size of the attached shared memory segment. If no shared
memory segment is attached, 0 is returned.
+ \note The size of the segment may be larger than the requested size that was
+ passed to create().
+
\sa create(), attach()
*/
int QSharedMemory::size() const