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

void PUBLIC csoundDestroyMessageBuffer ( CSOUND *  csound  ) 

Releases all memory used by the message buffer.

Definition at line 3169 of file csound.c.

References csoundDestroyMessageBuffer(), csoundGetMessageCnt(), and csoundPopFirstMessage().

Referenced by csoundDestroyMessageBuffer(), and csoundEnableMessageBuffer().

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

      if (!pp)
        return;
      while (csoundGetMessageCnt(csound) > 0)
        csoundPopFirstMessage(csound);
      csoundSetHostData(csound, (void*) 0);
      csoundDestroyMutex(pp->mutex_);
      free((void*) pp);
  }


Generated by  Doxygen 1.6.0   Back to index