Changeset 312 in pacpusframework for trunk/include/Pacpus/PacpusTools
- Timestamp:
- Jul 28, 2014, 4:11:30 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Pacpus/PacpusTools/SharedMemory.h
r300 r312 57 57 /// Dtor of shared memory class. 58 58 virtual ~SharedMemory(); 59 59 60 60 /// Returns pointer to shared memory 61 61 virtual void* read(); 62 62 /// Copies a chunk of shared memory to dst buffer 63 63 virtual void read(void* dst, int size); 64 64 65 65 /// Use this method to write data in shared memory. Offset is given in bytes 66 66 virtual void write(void* data, int size, unsigned long offset = 0); 67 67 68 68 /// Use this method to wait the incoming of new data 69 69 /// you can specify a timeout in ms to avoid infinite blocking or 0 (infinite) 70 70 /// @returns @b true if new data available before the timeout, @b false otherwise 71 71 virtual bool wait(unsigned long timeout = 0); 72 72 73 73 /// Function that locks access to the shared memory 74 74 virtual void lockMemory(); 75 75 /// Function that unlocks access to the shared memory 76 76 virtual void unlockMemory(); 77 77 78 78 /// Returns event handle on Windows and NULL on Unix. 79 79 virtual void* getEventIdentifier();
Note:
See TracChangeset
for help on using the changeset viewer.