Google

class Class

Singelton for querying the Pvm.

Public Methods

[more]void Hosts (HostSet &Result) const
a set of all hosts in the PVM is returned in the reference parameter Result.
[more]Task I () const
returns a Task-instance representing the current task.
[more]unsigned int NumOfArchs () const
returns the Number of different architectures, that are present on the pvm.
[more]void Tasks (TaskSet &Result) const
a set of all tasks currently running on the PVM is returned in the reference parameter Result.
[more]void Update () const
this function handles all pending messages, for which receive actions other than normal receive are defined.


Documentation

Singelton for querying the Pvm.

This singelton class represents the global state of the Parallel Virtual Machine (PVM). During construction (this happens on first call to any PVM++ function) all necessary internal information is created and the current tasks is introduced to the PVM. Access to the class is given by the global function const PvmClass& Pvm().

oTask I() const
returns a Task-instance representing the current task. I.e. the task, this function is called from.

ounsigned int NumOfArchs() const
returns the Number of different architectures, that are present on the pvm.

ovoid Hosts(HostSet &Result) const
a set of all hosts in the PVM is returned in the reference parameter Result.

ovoid Tasks(TaskSet &Result) const
a set of all tasks currently running on the PVM is returned in the reference parameter Result.

ovoid Update() const
this function handles all pending messages, for which receive actions other than normal receive are defined. Such are message handler, automatic unpack, swallow on receive. This is executed automatically by all Send() and Receive*() commands of the Struct and StructSet classes. If you have message handlers installed, it is important to call this function before using data, provided by such handlers. E.g. a task gets messages from time to time, telling it, which tasks it has to send messages to. It then has to provide this information to the Send()-function. Send() calls Update(), but when the message-handlers are invoked for the received message, this new information can't be provided to the Send()-function, as the old information is already there.


This class has no child classes.
Friends:
class HostTableType
const Class & Pvm ()

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.