Changeset 31 in pacpusframework for trunk/include/Pacpus/PacpusTools/PosixShMem.h


Ignore:
Timestamp:
01/08/13 18:10:10 (11 years ago)
Author:
sgosseli
Message:

Huge commit: use the new includes style in all the files, add the license header in all the headers, and in some cpp.

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 */
    310
    4 #include <qsharedmemory.h>
    5 #include <qsystemsemaphore.h>
     11#ifndef DEF_PACPUS_POSIXSHMEM_H
     12#define DEF_PACPUS_POSIXSHMEM_H
    613
    7 #include "ShMemBase.h"
     14#include <QSharedMemory>
     15#include <QSystemSemaphore>
    816
    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>
    1618
    1719class PosixShMem
     
    2830    virtual void unlockMemory();
    2931
    30 protected:
    31 
    3232private:
    33     //  int shMemHandle_;
    34     //  int semaphore_id;
    35     //  semun sem_arg_ctl;
    3633    QSystemSemaphore * event_;
    3734    QSharedMemory * memory_;
    3835};
    3936
    40 #endif // POSIXSHMEM_H
     37#endif // DEF_PACPUS_POSIXSHMEM_H
Note: See TracChangeset for help on using the changeset viewer.