Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Is it "unwise" to use SHMGET() & SHMAT() in Qt code, rather than Qsharedmemory functions?
Jagahatshi last edited by
I'm learning about Qt, and for my development shared memory is the way to go. In C, I've been following BeeJ's advice: "http://beej.us/guide/bgipc/output/html/multipage/shm.html":http://beej.us/guide/bgipc/output/html/multipage/shm.html
It seems that using the shmget(), shmat(), etc calls in a Qt application are not very common. Is there a major reason why I should use Qsharedmemory instead? I see "(here)":http://qt-project.org/doc/qt-4.8/qsharedmemory.html that it is possible to make Qsharedmemory work with my "C" shm, by using a custom key via setNativeKey().
I've only found a few details regarding this question so far "(link)":http://www.qtcentre.org/threads/48915-qsharedmemory-between-Qt-and-c-program-on-linux-plateform?highlight=shmat.
I'm trying to learn, so I greatly appreciate hearing your advice and about your experiences with shared memory!