Wrapper for MPI_Comm communicator. More...
#include <mpi_carrier/MpiComm.h>
Public Member Functions | |
| MpiComm (std::string name) | |
| ~MpiComm () | |
| bool | connect (std::string port) |
| bool | accept () |
| void | disconnect (bool disconn) |
| bool | notLocal (std::string other) |
| void | openPort () |
| void | closePort () |
| int | rank () |
Public Attributes | |
| char | port_name [MPI_MAX_PORT_NAME] |
| char | unique_id [10+MPI_MAX_PROCESSOR_NAME] |
| MPI_Comm | comm |
| yarp::os::Semaphore | sema |
Wrapper for MPI_Comm communicator.
Uses the dynamic process management from the MPI-2 standard to set up a communicator between two separate processes.
| MpiComm::MpiComm | ( | std::string | name | ) |
Definition at line 83 of file MpiComm.cpp.
| bool MpiComm::accept | ( | ) |
Definition at line 146 of file MpiComm.cpp.
| bool MpiComm::connect | ( | std::string | port | ) |
Definition at line 116 of file MpiComm.cpp.
| void MpiComm::disconnect | ( | bool | disconn | ) |
Definition at line 168 of file MpiComm.cpp.
| bool MpiComm::notLocal | ( | std::string | other | ) |
Definition at line 108 of file MpiComm.cpp.
| yarp::os::Semaphore MpiComm::sema |