Corrected some prototyping bugs in charmFutures.C and charmFuturesInclude.h.
authorMilind Bhandarkar <milind@cs.uiuc.edu>
Wed, 15 Jan 1997 17:00:11 +0000 (17:00 +0000)
committerMilind Bhandarkar <milind@cs.uiuc.edu>
Wed, 15 Jan 1997 17:00:11 +0000 (17:00 +0000)
Removed a C++ style comment in futures.c.

src/lib-misc/charmFutures.C
src/lib-misc/charmFuturesInclude.h
src/lib-misc/futures.c

index 7a5a73b72b793689e35e6c67d34b759ad68b477a..f09fe5afa2900508eb7981e5a275dfcec2d1c110 100644 (file)
@@ -42,7 +42,7 @@ public:
     //    CPrintf("[%d]Starting Future handler BOC\n", CmiMyPe());
   }
 
-  SetFuture(FutureInitMsg * m)
+  void SetFuture(FutureInitMsg * m)
   { int key;
 
     key = GetRefNumber(m);
@@ -52,14 +52,14 @@ public:
 };
 
 extern "C" 
-InitCharmFutures()
+void InitCharmFutures()
 {
     FutureInitMsg *message2 = new (MsgIndex(FutureInitMsg)) FutureInitMsg ;    
     futureBocNum = new_group (Future, message2);
 }
 
 extern "C" 
-CSendToFuture(void *m, int processor)
+void CSendToFuture(void *m, int processor)
 {
 
        CSendMsgBranch(Future, SetFuture, m, futureBocNum, processor);
index f3545802682336aa6c97a15ec504a67b0315cb93..8cbb41c2cf074aff18718c0700184aca85a25567 100644 (file)
@@ -2,8 +2,8 @@
 extern "C" SetRefNumber(void *, int);
 extern "C" GetRefNumber(void *);
 
-extern "C"     InitCharmFutures();
+extern "C" void InitCharmFutures();
 extern "C" void*  CharmBlockingCall(int entry, void * m, int g, int p);
 extern "C" CthThread CthCreate(void (*)(...), void *, int);
 
-extern "C" CSendToFuture(void *m, int processor);
+extern "C" void CSendToFuture(void *m, int processor);
index f1231e8d25192745e8cbcc3b58eb90c69fe3df9e..d34da45f7fcc2da4793b0c35a92bbcb3e28369f7 100644 (file)
@@ -92,7 +92,7 @@ static void awaken_threads (Element *e)
   {  Element *f;
     while (e)
       {
-// CmiPrintf("[%d] Awakening next thread\n",CmiMyPe());
+/* CmiPrintf("[%d] Awakening next thread\n",CmiMyPe()); */
        CthAwaken(e->t);
        f = e;
        e = e->next;