git-svn-id: svn://db.shs.com.ru/pip@677 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
#include "piincludes_p.h"
|
||||
#include "pisharedmemory.h"
|
||||
#include "pipropertystorage.h"
|
||||
#if defined(LINUX) || defined(MAC_OS)
|
||||
# define SHM_POSIX
|
||||
#endif
|
||||
@@ -182,6 +183,20 @@ void PISharedMemory::configureFromFullPathDevice(const PIString & full_path) {
|
||||
}
|
||||
|
||||
|
||||
PIPropertyStorage PISharedMemory::constructVariantDevice() const {
|
||||
PIPropertyStorage ret;
|
||||
ret.addProperty("path", path());
|
||||
ret.addProperty("size", dsize);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
void PISharedMemory::configureFromVariantDevice(const PIPropertyStorage & d) {
|
||||
setPath(d.propertyValueByName("path").toString());
|
||||
setSize(d.propertyValueByName("size").toInt());
|
||||
}
|
||||
|
||||
|
||||
void PISharedMemory::initPrivate() {
|
||||
#ifdef WINDOWS
|
||||
PRIVATE->map = 0;
|
||||
|
||||
Reference in New Issue
Block a user