Adding hook when resuming a normal thread of execution (i.e not the main thread or...
[charm.git] / src / conv-core / convcore.c
index 21122161e67a26a57bef5c4a1fd4c839b03f49bb..e90ec004c4d95deaea0ec0d8fefdbfcb40103f59 100644 (file)
@@ -1716,12 +1716,16 @@ void CthResumeNormalThread(CthThreadToken* token)
                resumeTraceCore();*/
 #endif
 #endif
-
+  
   /* BIGSIM_OOC DEBUGGING
   CmiPrintf("In CthResumeNormalThread:   ");
   CthPrintThdMagic(t);
   */
-  CthResume(t);
+
+  /* For Record/Replay debugging: need to notify the upper layer that we are resuming a thread */
+  if (CmiExecuteThreadResume(token)) {
+    CthResume(t);
+  }
 }
 
 void CthResumeSchedulingThread(CthThreadToken  *token)