Added new function to return a reply if no reply has already been sent, without abort...
[charm.git] / src / conv-ccs / conv-ccs.c
index 63348884e87ea384f8a915dc93ce3d6c21157fe0..7cb3e04e4c111cf2d1ff162218c3882b805a7c41 100644 (file)
@@ -183,6 +183,11 @@ void CcsSendReply(int replyLen, const void *replyData)
   CpvAccess(ccsReq) = NULL;
 }
 
+void CcsSendReplyNoError(int replyLen, const void *replyData) {
+  if (CpvAccess(ccsReq)==NULL) return;
+  CcsSendReply(replyLen, replyData);
+}
+
 void CcsSendDelayedReply(CcsDelayedReply d,int replyLen, const void *replyData)
 {
   CcsImplHeader *h = d.hdr;