source: pacpusframework/trunk/include/Pacpus/PacpusTools/PosixShMem.h@ 70

Last change on this file since 70 was 67, checked in by Marek Kurdej, 12 years ago

Documentation: file info.
Fixed: problem with includes in PacpusPluginInterface.h.

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1// This file is part of the PACPUS framework distributed under the
2// CECILL-C License, Version 1.0.
3//
4/// @file
5/// @author Firstname Surname <firstname.surname@utc.fr>
6/// @date Month, Year
7/// @version $Id: PosixShMem.h 67 2013-01-09 18:17:44Z kurdejma $
8/// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2013. All rights reserved.
9/// @brief Brief description.
10///
11/// Detailed description.
12
13#ifndef DEF_PACPUS_POSIXSHMEM_H
14#define DEF_PACPUS_POSIXSHMEM_H
15
16#include <QSharedMemory>
17#include <QSystemSemaphore>
18
19#include <Pacpus/PacpusTools/ShMemBase.h>
20
21/// @todo Documentation
22class PosixShMem
23 : public ShMemBase
24{
25public:
26 /// @todo Documentation
27 PosixShMem(const char * name, int size);
28 /// @todo Documentation
29 virtual ~PosixShMem();
30
31 /// @todo Documentation
32 virtual void *read();
33 /// @todo Documentation
34 virtual void write(void *data, int size, unsigned long offset = 0);
35 /// @todo Documentation
36 virtual bool wait(unsigned long timeout = 0);
37 /// @todo Documentation
38 virtual void lockMemory();
39 /// @todo Documentation
40 virtual void unlockMemory();
41
42private:
43 QSystemSemaphore * event_;
44 QSharedMemory * memory_;
45};
46
47#endif // DEF_PACPUS_POSIXSHMEM_H
Note: See TracBrowser for help on using the repository browser.