call PumpDatagramConnection every few millisecond (not just when idling) to make...
authorGengbin Zheng <gzheng@illinois.edu>
Sat, 31 Dec 2011 17:49:18 +0000 (09:49 -0800)
committerGengbin Zheng <gzheng@illinois.edu>
Sat, 31 Dec 2011 17:49:18 +0000 (09:49 -0800)
src/arch/gemini_gni/machine.c

index 7c2390d6b5ba7db4e47817234d2986217698a2f6..87550aede64ae74d4852dfa81674641925a8a17c 100644 (file)
@@ -1079,6 +1079,8 @@ void CmiNotifyIdleForGemini(void) {
     //LrtsAdvanceCommunication();
 }
 
+static void    PumpDatagramConnection();
+
 void LrtsPostCommonInit(int everReturn)
 {
 #if CMK_SMP
@@ -1088,7 +1090,7 @@ void LrtsPostCommonInit(int everReturn)
 #else
     CcdCallOnConditionKeep(CcdPROCESSOR_STILL_IDLE,(CcdVoidFn)CmiNotifyStillIdle,NULL);
 #endif
-
+    CcdCallOnConditionKeep(CcdPERIODIC_10ms, (CcdVoidFn) PumpDatagramConnection, NULL);
 }
 
 /* this is called by worker thread */