Is it "unwise" to use SHMGET() & SHMAT() in Qt code, rather than Qsharedmemory functions?
-
wrote on 3 Mar 2014, 16:36 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!
1/1