message: better fix for MPI_Request issue
diff: @@ -153,7 +153,7 @@ namespace maml {
  for (int i = 0; i < numDone; ++i) {
  int pendingSendCompletedIndex = done[i];
  - pendingSends[pendingSendCompletedIndex] = 0;// maps to 'int' on Win...
  + pendingSends[pendingSendCompletedIndex] = MPI_REQUEST_NULL;
  sendCache[pendingSendCompletedIndex].reset();
  }
  @@ -163,7 +163,7 @@ namespace maml {
  pendingSends.erase(std::remove(pendingSends.begin(),
  pendingSends.end(),
  - nullptr), pendingSends.end());
  + MPI_REQUEST_NULL), pendingSends.end());
  }
  }
  @@ -178,7 +178,7 @@ namespace maml {
  for (int i = 0; i < numDone; ++i) {
  int pendingRecvCompletedIndex = done[i];
  - pendingRecvs[pendingRecvCompletedIndex] = 0;// maps to 'int' on Win...
  + pendingRecvs[pendingRecvCompletedIndex] = MPI_REQUEST_NULL;
  inbox.push_back(std::move(recvCache[pendingRecvCompletedIndex]));
  }
  @@ -188,7 +188,7 @@ namespace maml {
  pendingRecvs.erase(std::remove(pendingRecvs.begin(),
  pendingRecvs.end(),
  - nullptr), pendingRecvs.end());
  + MPI_REQUEST_NULL), pendingRecvs.end());
  }
  }
  