Shared Memory
The Shared Memory component provides cross-platform access to shared memory.
This module makes it simple to employ shared memory in Qt applications. Shared memory can be used for high-speed inter-process communication. It provides a portable, platform-independent class API to the shared memory mechanism of the underlying operating system, and implements a locking mechanism to ensure safe access from multiple concurrent processes.
This Qt Solutions component is for Qt 3. For Qt 4 Solutions, please visit the Qt 4 Solutions Catalog.
Documentation:
Classes
ExamplesTested on:
- Qt 3.3.6 / Windows XP / MSVC.NET 2003
- Qt 3.3.6 / Linux / gcc
- Qt 3.3.6 / SunOS 5.9 / SunC++
- Qt 3.3.6 / MacOS X 10.4 / gcc
Unsupported platforms:
Only the tested platforms are supported, however the classes should be platform independent and are likely to work on the platforms supported by Qt.
Download Commercial Edition:
Only available for Qt Solutions license holder with a valid Support and Maintenance agreement (authentication required).> <br>
Changes:
- 1.2: Windows: Support attaching in readonly mode.
- 1.2: Windows: Improved speed and robustness.
- 1.1: lock() is now allowed before create() and attach()
- 1.1: The functions exists() and destroy() now work reliably
- 1.1: Support for Mac OS X with proper use of semctl for the UNIX port.

