Adding hook when resuming a normal thread of execution (i.e not the main thread or...
[charm.git] / src / ck-core / ck.C
index ca250a135ea956bafdd941e3b5f8cf1edb51aa5c..efe2232ebfd53791786eb0370e6d72cae67a1c05 100644 (file)
@@ -2044,6 +2044,14 @@ extern "C" void CkMessageReplayQuiescence(void *rep, double time) {
   //CmiStartQD(CkMessageReplayQuiescence, replay);
 }
 
+extern "C" int CmiExecuteThreadResume(CthThreadToken *token) {
+  CkCoreState *ck = CkpvAccess(_coreState);
+  if (ck->watcher!=NULL) {
+    return ck->watcher->processThread(token,ck);
+  }
+  return 1;
+}
+
 #include "trace-common.h" /* For traceRoot and traceRootBaseLength */
 
 static FILE *openReplayFile(const char *prefix, const char *suffix, const char *permissions) {