Merge pull request #56 from wuruilong01/master
[prads.git] / doc / shared_mem_comms
blob10164dc36551596db58a405489d0ae5626ec4974
1 this is a design document for things to come
2 probably meaningless to most
4 ipc - interprocess communication
5 copyless memory passing of asset data
7 minimize memory copies by storing struct in shmem heap
9 shmat 
10        #include <sys/types.h>
11        #include <sys/shm.h>
13        void *shmat(int shmid, const void *shmaddr, int shmflg);
15        int shmdt(const void *shmaddr);
17 // grab a page locked in memory - SHM_RDONLY if reader
18 shmat(31337, NULL, SHM_RND);