コード例 #1
0
void RecvMsg( MPIMessage & recvmsg ) {
    RecvArray(recvmsg.GetComm(),
              recvmsg.GetProcessId(),
              recvmsg.GetTag(),
              recvmsg.GetBuffer(),
              recvmsg.GetCount(),
              recvmsg.GetDataType());
}
コード例 #2
0
 //______________________________________________________________________________
 void TCommunicator::RecvSerialize(int source, int tag, Char_t **data, Int_t &size)
 {
    //util function to recv serialized data from TObject, recv firts the size of array
    //and after the array with serialized data.
    RecvScalar(source, tag, size);
    Char_t * data_tmp = new Char_t[size];
    RecvArray(source, tag, &data_tmp, size);
    *data = data_tmp;
 }