#include <ClusterEventBuffer.H>
Inherited by IS3D::ClusterEventBufferRenderingSide.
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 |
| 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] |
SimpleSHMEM* IS3D::ClusterEventBuffer::_buffer [protected] |
IPC_SimpleSemaphore* IS3D::ClusterEventBuffer::_bufferGate [protected] |
const int IS3D::ClusterEventBuffer::BUFFER_SIZE = 102400 [static] |
const int IS3D::ClusterEventBuffer::SHORT_SLEEP = 5000 [static] |
1.5.6