Logo Search packages:      
Sourcecode: csound version File versions  Download package

void PUBLIC csoundPopFirstMessage ( CSOUND *  csound  ) 

Removes the first message from the buffer.

Definition at line 3128 of file csound.c.

References csoundPopFirstMessage().

Referenced by csoundDestroyMessageBuffer(), and csoundPopFirstMessage().

  {
      csMsgBuffer *pp = (csMsgBuffer*) csoundGetHostData(csound);

      if (pp) {
        csMsgStruct *tmp;
        csoundLockMutex(pp->mutex_);
        tmp = pp->firstMsg;
        if (tmp) {
          pp->firstMsg = tmp->nxt;
          pp->msgCnt--;
          if (!pp->firstMsg)
            pp->lastMsg = (csMsgStruct*) 0;
        }
        csoundUnlockMutex(pp->mutex_);
        if (tmp)
          free((void*) tmp);
      }
  }


Generated by  Doxygen 1.6.0   Back to index