From 3bb905ab216c78c3238f8a5ada42aebbf907420d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 4 Oct 2022 15:46:05 +0200 Subject: [PATCH] Document that QSharedMemory requires -feature-ipc_posix on Mac App Store The QSharedMemory backend build system machinery does not currently support multiple backends, so the choice has to be made at configure time. Fixes: QTBUG-106910 Change-Id: I4b814ca1c131a2860467e96cc5a6dd7cd03fc8b7 Reviewed-by: Thiago Macieira (cherry picked from commit 381538991229299c1e62bb0ebf282506b567e322) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/kernel/qsharedmemory.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/corelib/kernel/qsharedmemory.cpp b/src/corelib/kernel/qsharedmemory.cpp index a789a58b653..28a9742c690 100644 --- a/src/corelib/kernel/qsharedmemory.cpp +++ b/src/corelib/kernel/qsharedmemory.cpp @@ -144,6 +144,12 @@ QSharedMemoryPrivate::makePlatformSafeKey(const QString &key, \endlist + Qt for iOS comes with support for POSIX shared memory out of the box. + With Qt for \macos an additional configure flag must be added when + building Qt to enable the feature. To enable the feature pass + \c {-feature-ipc_posix} Note that the pre-built Qt libraries for + \macos available through the Qt installer do not include this feature. + \endlist Remember to lock the shared memory with lock() before reading from