Fixed a bug in threaded entry method invocation.
authorMilind Bhandarkar <milind@cs.uiuc.edu>
Tue, 28 Jan 1997 16:21:26 +0000 (16:21 +0000)
committerMilind Bhandarkar <milind@cs.uiuc.edu>
Tue, 28 Jan 1997 16:21:26 +0000 (16:21 +0000)
src/xlat-i/xi-generate.C

index f1f14478928aa46e436607003ddbd1c5ddfc4025..127c65fbaf4eddc24837712c3008dcd7022d2e33 100644 (file)
@@ -147,6 +147,8 @@ void GenerateStructsFns(ofstream& top, ofstream& bot)
         commonStuff(top, bot, c, e);
 
         bot << "\tCmiFree(elt);" << endl;
+        bot << "\tCthFree(CthSelf());" << endl;
+        bot << "\tCthSuspend();" << endl;
         bot << "}" << endl ;
 
         sprintf(str,"void _CK_call_%s_%s(void *m, void *obj)",
@@ -161,7 +163,7 @@ void GenerateStructsFns(ofstream& top, ofstream& bot)
             << endl;
 
         sprintf(str,
-          "\tt = CthCreate( (void (*)(...)) _CK_call_threaded_%s_%s, (void *) element,%d);",
+          "\tt = CthCreate( (CthVoidFn) _CK_call_threaded_%s_%s, (void *) element,%d);",
           c->name,e->name,e->get_stackSize()) ;
         bot << str << endl;
         bot << "\tCthSetStrategyDefault(t);" << endl;