Changeset 31 in pacpusframework for trunk/include/Pacpus/PacpusTools/PosixShMem.h
- Timestamp:
- 01/08/13 18:10:10 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Pacpus/PacpusTools/PosixShMem.h
r3 r31 1 #ifndef POSIXSHMEM_H 2 #define POSIXSHMEM_H 1 /** 2 * 3 * Distributed under the UTC Heudiascy Pacpus License, Version 1.0. 4 * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved. 5 * 6 * See the LICENSE file for more information or a copy at: 7 * http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt 8 * 9 */ 3 10 4 #i nclude <qsharedmemory.h>5 # include <qsystemsemaphore.h>11 #ifndef DEF_PACPUS_POSIXSHMEM_H 12 #define DEF_PACPUS_POSIXSHMEM_H 6 13 7 #include "ShMemBase.h" 14 #include <QSharedMemory> 15 #include <QSystemSemaphore> 8 16 9 /* 10 union semun{ 11 int val ; 12 struct semid_ds * buf; 13 unsigned short array[1]; 14 }; 15 */ 17 #include <Pacpus/PacpusTools/ShMemBase.h> 16 18 17 19 class PosixShMem … … 28 30 virtual void unlockMemory(); 29 31 30 protected:31 32 32 private: 33 // int shMemHandle_;34 // int semaphore_id;35 // semun sem_arg_ctl;36 33 QSystemSemaphore * event_; 37 34 QSharedMemory * memory_; 38 35 }; 39 36 40 #endif // POSIXSHMEM_H37 #endif // DEF_PACPUS_POSIXSHMEM_H
Note:
See TracChangeset
for help on using the changeset viewer.