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

int PUBLIC csoundGetMessageCnt ( CSOUND csound  ) 

Returns the number of pending messages in the buffer.

Definition at line 3125 of file csound.c.

References csoundGetMessageCnt().

Referenced by csoundDestroyMessageBuffer(), and csoundGetMessageCnt().

  {
      csMsgBuffer *pp = (csMsgBuffer*) csoundGetHostData(csound);
      int         cnt = 0;

      if (pp) {
        csoundLockMutex(pp->mutex_);
        cnt = pp->msgCnt;
        csoundUnlockMutex(pp->mutex_);
      }
      return cnt;
  }


Generated by  Doxygen 1.6.0   Back to index