IS3D::ClusterEventBuffer Class Reference

#include <ClusterEventBuffer.H>

Inherited by IS3D::ClusterEventBufferRenderingSide.

List of all members.

Public Types

enum  { TERM_FLAG = 0, RENDERER_ATTACHED_FLAG, SHMEM_NUM_FLAGS }

Public Member Functions

virtual bool init ()=0
void setRenderingAttached ()
bool hasRenderingAttached ()
bool isRenderingAttached ()
void lockBuffer ()
void unlockBuffer ()
char * getBuffer ()
int getBufferSize ()
void clearBuffer ()

Static Public Attributes

static const int BUFFER_SIZE = 102400
static const int SHORT_SLEEP = 5000

Protected Member Functions

void setFlag (int flag, bool val)
bool getFlag (int flag)
int shmemTotalSize ()
int shmemDeviceSize ()
int shmemFlagsSize ()
char * shmemDataAddr ()
char * shmemFlagsAddr ()

Protected Attributes

SimpleSHMEM_buffer
IPC_SimpleSemaphore_bufferGate


Member Enumeration Documentation

anonymous enum

Enumerator:
TERM_FLAG 
RENDERER_ATTACHED_FLAG 
SHMEM_NUM_FLAGS 


Member Function Documentation

virtual bool IS3D::ClusterEventBuffer::init (  )  [pure virtual]

Responsible for instantiating protected IPC members and sync'ing with the corresponding buffer object on the 'other' side (MPI / Rendering)

Implemented in IS3D::ClusterEventBufferRenderingSide.

void IS3D::ClusterEventBuffer::setRenderingAttached (  ) 

bool IS3D::ClusterEventBuffer::hasRenderingAttached (  ) 

bool IS3D::ClusterEventBuffer::isRenderingAttached (  ) 

void IS3D::ClusterEventBuffer::lockBuffer (  ) 

void IS3D::ClusterEventBuffer::unlockBuffer (  ) 

char* IS3D::ClusterEventBuffer::getBuffer (  ) 

int IS3D::ClusterEventBuffer::getBufferSize (  ) 

void IS3D::ClusterEventBuffer::clearBuffer (  ) 

void IS3D::ClusterEventBuffer::setFlag ( int  flag,
bool  val 
) [protected]

bool IS3D::ClusterEventBuffer::getFlag ( int  flag  )  [protected]

int IS3D::ClusterEventBuffer::shmemTotalSize (  )  [protected]

int IS3D::ClusterEventBuffer::shmemDeviceSize (  )  [protected]

int IS3D::ClusterEventBuffer::shmemFlagsSize (  )  [protected]

char* IS3D::ClusterEventBuffer::shmemDataAddr (  )  [protected]

char* IS3D::ClusterEventBuffer::shmemFlagsAddr (  )  [protected]


Member Data Documentation

const int IS3D::ClusterEventBuffer::BUFFER_SIZE = 102400 [static]

const int IS3D::ClusterEventBuffer::SHORT_SLEEP = 5000 [static]


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

Generated on Wed Jan 26 06:31:21 2011 for IS3D by  doxygen 1.5.6