avoid calling PCQueueEmpty() since the value can be off.
authorGengbin Zheng <gzheng@illinois.edu>
Sun, 14 Oct 2007 06:48:51 +0000 (06:48 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Sun, 14 Oct 2007 06:48:51 +0000 (06:48 +0000)
src/arch/mpi/machine.c

index 04fd13140f7558ecff478dad885a7d523b6dcbd0..7a4c1d53e93fdf291b326f531da35099fb8a7367 100644 (file)
@@ -1037,13 +1037,13 @@ char *CmiGetNonLocalNodeQ(void)
   CmiState cs = CmiGetState();
   char *result = 0;
   CmiIdleLock_checkMessage(&cs->idle);
-  if(!PCQueueEmpty(CsvAccess(NodeState).NodeRecv)) {
+/*  if(!PCQueueEmpty(CsvAccess(NodeState).NodeRecv)) {  */
     MACHSTATE1(3,"CmiGetNonLocalNodeQ begin %d {", CmiMyPe());
     CmiLock(CsvAccess(NodeState).CmiNodeRecvLock);
     result = (char *) PCQueuePop(CsvAccess(NodeState).NodeRecv);
     CmiUnlock(CsvAccess(NodeState).CmiNodeRecvLock);
     MACHSTATE1(3,"} CmiGetNonLocalNodeQ end %d ", CmiMyPe());
-  }
+/*  }  */
   return result;
 }
 #endif