[Qt-interest] QSharedMemory limits on Mac OS X

Kustaa Nyholm Kustaa.Nyholm at planmeca.com
Wed Apr 14 14:57:21 CEST 2010


> Have you tried mmap() directly? It is not affected by the kern.sysv.* limits.
> SysV IPC is basicly there for backwards compatibility, nobody should use it
> anymore.
> Hmmm...

Yes, I've tried mmap() directly and it works no problems, it was only
later that I realized I could have used QSharedMemory but researching
this I found that limitation ... hence the question. So apparently
I'm better of with mmap() and my own implementation than using
QSharedMemory().

Thanks, should have grepped myself of course but I'm not familiar
with the shared memory function names in unix (can barely spell mmap ;-)



br Kusti


> 
> qt-4.6/src/corelib$ grep -rn shmat *
> kernel/qsharedmemory_unix.cpp:233:    memory = shmat(id, 0, (mode ==
> QSharedMemory::ReadOnly ? SHM_RDONLY : 0));
> kernel/qsharedmemory_unix.cpp:236:
> setErrorString(QLatin1String("QSharedMemory::attach (shmat)"));
> 
> .. seems Qt is still using it, though.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest





More information about the Qt-interest-old mailing list