QuakeGod
2024-07-27 842bb64195f958b050867c50db66fc0aa413dafb
ComLib/Src/MyQueue.c
@@ -13,19 +13,19 @@
      theQueue->Caps=nSize;
      theQueue->wp=0;
      theQueue->rp=0;
      theQueue->RecvBytes=0;
//      theQueue->RecvBytes=0;
      //theQueue->state=0;
      theQueue->bFull=0;
      theQueue->bEmpty=1;
      theQueue->state=0;
         return 0;
   }
   int EmptyQueue(stMyQueue * theQueue)
   {
      theQueue->wp=0;
      theQueue->rp=0;
      //theQueue->state=0;
      theQueue->bFull=0;
      theQueue->bEmpty=1;
      theQueue->state=0;
      return 0;
   }
   int GetContinueEmptyRoom(stMyQueue * theQueue)
@@ -75,7 +75,7 @@
      theQueue->bEmpty=0;
      if (wp == theQueue->rp) theQueue->bFull=1;
      theQueue->wp = wp;
      theQueue->RecvBytes+=nSize;
//      theQueue->RecvBytes+=nSize;
      return nSize;
   }
   
@@ -88,10 +88,10 @@
      theQueue->rp = rp;
      if (rp == theQueue->wp)
      {         
         theQueue->bEmpty=1;
         theQueue->wp=0;
         theQueue->rp=0;
         theQueue->state=0;
//         theQueue->state=0;
         theQueue->bEmpty=1;
      }
      return nSize;
   }