QGuiSharedMemory Class Reference

Inheritance diagram for QGuiSharedMemory:

QSharedMemory

List of all members.


Detailed Description

shared memory handling a single unsigned int, used for communication between batch and gui pulser classes.

Author:
Sergio Di Domizio

Public Member Functions

 QGuiSharedMemory (bool owner)
 ctor
virtual ~QGuiSharedMemory ()
 dtor
bool GetValue (unsigned int &value)
 read value from shared memory
bool SetValue (unsigned int value)
 write value to shared memory

Protected Member Functions

virtual bool Init (bool owner, int shmId)

Private Attributes

QSemaphore fSemaphore
unsigned int * fChildPointer

Constructor & Destructor Documentation

QGuiSharedMemory::QGuiSharedMemory ( bool  owner  ) 

ctor

Parameters:
owner whether this instance is the owner of the shared memory

References fSemaphore, QSemaphore::GetError(), QSemaphore::Init(), and Init().


Member Function Documentation

bool QGuiSharedMemory::Init ( bool  owner,
int  shmId 
) [protected, virtual]

Implementation of the Init() method of QSharedMemory abstract class

Implements QSharedMemory.

References fChildPointer, QSharedMemory::GetShmPointer(), and QSharedMemory::InitInternal().

Referenced by QGuiSharedMemory().


Member Data Documentation

used to ensure sequential access to data

Referenced by GetValue(), QGuiSharedMemory(), and SetValue().

unsigned int* QGuiSharedMemory::fChildPointer [private]

pointer to shared memory

Referenced by GetValue(), Init(), and SetValue().


The documentation for this class was generated from the following files:

Generated on Tue Nov 16 10:50:07 2010 for CUORE Software by  doxygen 1.5.6