git-svn-id: svn://db.shs.com.ru/pip@480 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2017-04-28 08:43:36 +00:00
parent 0c2fd6985a
commit 54d40653cb
5 changed files with 26 additions and 32 deletions

View File

@@ -36,7 +36,6 @@ public:
//! Constructs a shared memory object with name "shm_name", size "size" and open mode "mode"
explicit PISharedMemory(const PIString & shm_name, int size, DeviceMode mode = ReadWrite);
PISharedMemory(const PISharedMemory & other);
virtual ~PISharedMemory() {close();}
@@ -45,6 +44,9 @@ public:
//! Returns shared memory object size
llong size() const;
//! Set shared memory object size
void setSize(llong s);
//! Returns if shared memory object is empty
bool isEmpty() const {return (size() <= 0);}