Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is it "unwise" to use SHMGET() & SHMAT() in Qt code, rather than Qsharedmemory functions?

Is it "unwise" to use SHMGET() & SHMAT() in Qt code, rather than Qsharedmemory functions?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jagahatshi
    wrote on 3 Mar 2014, 16:36 last edited by
    #1

    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!

    Regards, Chris

    1 Reply Last reply
    0

    1/1

    3 Mar 2014, 16:36

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved