Last change
on this file since 23 was 3, checked in by sgosseli, 12 years ago |
- Add the existing Pacpus files from pacpusdev and pacpuscore.
- Provide a clean build system based on multiple CMake files.
|
File size:
885 bytes
|
Line | |
---|
1 | /*********************************************************************
|
---|
2 | // created: 2006/12/30 - 17:19
|
---|
3 | // filename: ShMem.h
|
---|
4 | //
|
---|
5 | // author: Gerald Dherbomez
|
---|
6 | //
|
---|
7 | // version: $Id: ShMem.h 914 2012-03-07 15:57:43Z kurdejma $
|
---|
8 | //
|
---|
9 | // purpose: Generic Win32 and Linux class for the exchange of
|
---|
10 | // data via shared memory.
|
---|
11 | *********************************************************************/
|
---|
12 |
|
---|
13 | #ifndef SHMEM_H
|
---|
14 | #define SHMEM_H
|
---|
15 |
|
---|
16 | #ifdef WIN32
|
---|
17 | # include "Win32ShMem.h"
|
---|
18 | # define ShMemType Win32ShMem
|
---|
19 | #else
|
---|
20 | # include "PosixShMem.h"
|
---|
21 | # define ShMemType PosixShMem
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | namespace pacpus {
|
---|
25 |
|
---|
26 | class ShMem
|
---|
27 | : public ShMemType
|
---|
28 | {
|
---|
29 | public:
|
---|
30 | ShMem(const char * name, int size)
|
---|
31 | : ShMemType(name, size)
|
---|
32 | {
|
---|
33 | }
|
---|
34 |
|
---|
35 | ~ShMem()
|
---|
36 | {
|
---|
37 | }
|
---|
38 |
|
---|
39 | protected:
|
---|
40 | private:
|
---|
41 | };
|
---|
42 |
|
---|
43 | } // namespace pacpus
|
---|
44 |
|
---|
45 | #endif // SHMEM_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.