openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/runtime/stream.c
static void strmWaitAsyncWriterDone(strm_t* pThis)
{
    if (pThis->bAsyncWrite)
    {
        /* awake writer thread and make it write out everything */
        while (pThis->iCnt > 0)
        {
            pthread_cond_signal(&pThis->notEmpty);
            d_pthread_cond_wait(&pThis->isEmpty, &pThis->mut);
        }
    }
}
/* wait for the output writer thread to be done. This must be called before
 * actions that require data to be persisted. May be called in non-async mode
 * and is a null operation than. Must be called with the mutex locked.
 */
wait for the output writer thread to be done. This must be called before
actions that require data to be persisted. May be called in non-async mode
and is a null operation than. Must be called with the mutex locked.
wait for the output writer thread to be done . This must be called before actions that require data to be persisted . May be called in non - async mode and is a null operation than . Must be called with the mutex locked .
static void strmWaitAsyncWriterDone(strm_t* pThis)
{
    if (pThis->bAsyncWrite)
    {
        while (pThis->iCnt > 0)
        {
            pthread_cond_signal(&pThis->notEmpty);
            d_pthread_cond_wait(&pThis->isEmpty, &pThis->mut);
        }
    }
}
static void strmWaitAsyncWriterDone ( strm_t * pThis ) { if ( pThis -> bAsyncWrite ) { while ( pThis -> iCnt > 0 ) { pthread_cond_signal ( & pThis -> notEmpty ) ; d_pthread_cond_wait ( & pThis -> isEmpty , & pThis -> mut ) ; } } }
wait for the output writer thread to be done.
wait for the output writer thread to be done .
/* awake writer thread and make it write out everything */