Last change
on this file since 162 was 91, checked in by DHERBOMEZ Gérald, 11 years ago |
Improvement of the build system to avoid some workarounds
|
-
Property svn:keywords
set to
Id
|
File size:
1.2 KB
|
Rev | Line | |
---|
[76] | 1 | // %pacpus:license{
|
---|
[62] | 2 | // This file is part of the PACPUS framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[76] | 4 | // %pacpus:license}
|
---|
[66] | 5 | /// @file
|
---|
[91] | 6 | /// @author Gerald Dherbomez <firstname.surname@utc.fr>
|
---|
| 7 | /// @date January, 2007
|
---|
[62] | 8 | /// @version $Id: PosixShMem.h 91 2013-05-19 10:32:48Z gdherbom $
|
---|
| 9 | /// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2013. All rights reserved.
|
---|
| 10 | /// @brief Brief description.
|
---|
| 11 | ///
|
---|
| 12 | /// Detailed description.
|
---|
[3] | 13 |
|
---|
[31] | 14 | #ifndef DEF_PACPUS_POSIXSHMEM_H
|
---|
| 15 | #define DEF_PACPUS_POSIXSHMEM_H
|
---|
[3] | 16 |
|
---|
[31] | 17 | #include <QSharedMemory>
|
---|
| 18 | #include <QSystemSemaphore>
|
---|
[3] | 19 |
|
---|
[31] | 20 | #include <Pacpus/PacpusTools/ShMemBase.h>
|
---|
[3] | 21 |
|
---|
[67] | 22 | /// @todo Documentation
|
---|
[3] | 23 | class PosixShMem
|
---|
| 24 | : public ShMemBase
|
---|
| 25 | {
|
---|
| 26 | public:
|
---|
[67] | 27 | /// @todo Documentation
|
---|
[3] | 28 | PosixShMem(const char * name, int size);
|
---|
[67] | 29 | /// @todo Documentation
|
---|
[3] | 30 | virtual ~PosixShMem();
|
---|
| 31 |
|
---|
[67] | 32 | /// @todo Documentation
|
---|
[3] | 33 | virtual void *read();
|
---|
[67] | 34 | /// @todo Documentation
|
---|
[3] | 35 | virtual void write(void *data, int size, unsigned long offset = 0);
|
---|
[67] | 36 | /// @todo Documentation
|
---|
[3] | 37 | virtual bool wait(unsigned long timeout = 0);
|
---|
[67] | 38 | /// @todo Documentation
|
---|
[3] | 39 | virtual void lockMemory();
|
---|
[67] | 40 | /// @todo Documentation
|
---|
[3] | 41 | virtual void unlockMemory();
|
---|
| 42 |
|
---|
| 43 | private:
|
---|
| 44 | QSystemSemaphore * event_;
|
---|
| 45 | QSharedMemory * memory_;
|
---|
| 46 | };
|
---|
| 47 |
|
---|
[31] | 48 | #endif // DEF_PACPUS_POSIXSHMEM_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.