Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

DataServerMPI Class Reference

#include <dataservermpi.h>

Inheritance diagram for DataServerMPI::

DataServer RemoteSocket TCPSocket List of all members.

Public Methods

 DataServerMPI ()
 DataServerMPI (int port)
int Start (int port=4096)
 Spawn a DataServer thread at port "port". More...

 ~DataServerMPI ()
int Wait (char *key)
 Get lock on data registered by "keyword". Wait if any other DataClient is accessing the critical section. More...

int Post (char *key)
 Release/Post the lock on data registered by "keyword". More...

int Synchronize (char *filename=NULL)
template<class Etype> Etype Update (Etype *var)
template<class Etype> Etype Update (Etype var)

Constructor & Destructor Documentation

DataServerMPI::DataServerMPI  
 

Definition at line 8 of file dataservermpi.cc.

DataServerMPI::DataServerMPI int    port
 

Definition at line 12 of file dataservermpi.cc.

References Start().

DataServerMPI::~DataServerMPI  
 

Definition at line 17 of file dataservermpi.cc.


Member Function Documentation

int DataServerMPI::Post char *    key
 

Release/Post the lock on data registered by "keyword".

Reimplemented from DataServer.

Definition at line 63 of file dataservermpi.cc.

References DataServer::isMaster(), and DataServer::Post().

int DataServerMPI::Start int    port = 4096
 

Spawn a DataServer thread at port "port".

Reimplemented from DataServer.

Definition at line 24 of file dataservermpi.cc.

References ALLOC1D(), FREE1D(), DataServer::isMaster(), and DataServer::Start().

Referenced by DataServerMPI().

int DataServerMPI::Synchronize char *    filename = NULL
 

Reimplemented from DataServer.

Definition at line 70 of file dataservermpi.cc.

References DataServer::BroadcastData(), DataServer::BroadcastVariable(), KeyTable::Callback(), DataServer::callback, KeyTable::hasCallback(), DataServer::IsDirty(), DataServer::IsDirtyID(), DataServer::isMaster(), KeyTable::isViewableVar(), KeyTable::isWritable(), DataServer::Key(), KeyTable::key, DataServer::keytable, DataServer::NumKeys(), POSSE_SUCCESS, and DataServer::Synchronize().

template<class Etype>
Etype DataServerMPI::Update Etype    var
 

Definition at line 48 of file dataservermpi.h.

References DataServer::BroadcastVariable().

template<class Etype>
Etype DataServerMPI::Update Etype *    var
 

Definition at line 40 of file dataservermpi.h.

References DataServer::BroadcastVariable().

int DataServerMPI::Wait char *    key
 

Get lock on data registered by "keyword". Wait if any other DataClient is accessing the critical section.

Reimplemented from DataServer.

Definition at line 55 of file dataservermpi.cc.

References DataServer::isMaster(), and DataServer::Wait().


The documentation for this class was generated from the following files:
Generated on Sun Jun 16 17:36:51 2002 for POSSE: Portable Object-oriented Scientific Steering Environment by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001