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 rsRetVal strmFlush(strm_t* pThis)
{
    DEFiRet;

    assert(pThis != NULL);

    if (pThis->bAsyncWrite)
        d_pthread_mutex_lock(&pThis->mut);
    CHKiRet(strmFlushInternal(pThis, 1));

finalize_it:
    if (pThis->bAsyncWrite)
        d_pthread_mutex_unlock(&pThis->mut);

    RETiRet;
}
/* flush stream output buffer to persistent storage. This can be called at any
 * time and is automatically called when the output buffer is full. This
 * function is for use by EXTERNAL callers. Do NOT use it internally. It locks
 * the async writer mutex if ther is need to do so. rgerhards, 2010-03-18
 */
flush stream output buffer to persistent storage. This can be called at any
time and is automatically called when the output buffer is full. This
function is for use by EXTERNAL callers. Do NOT use it internally. It locks
the async writer mutex if ther is need to do so.
flush stream output buffer to persistent storage . This can be called at any time and is automatically called when the output buffer is full . This function is for use by EXTERNAL callers . Do NOT use it internally . It locks the async writer mutex if ther is need to do so .
static rsRetVal strmFlush(strm_t* pThis)
{
    DEFiRet;
    assert(pThis != NULL);
    if (pThis->bAsyncWrite)
        d_pthread_mutex_lock(&pThis->mut);
    CHKiRet(strmFlushInternal(pThis, 1));
finalize_it:
    if (pThis->bAsyncWrite)
        d_pthread_mutex_unlock(&pThis->mut);
    RETiRet;
}
static rsRetVal strmFlush ( strm_t * pThis ) { DEFiRet ; assert ( pThis != NULL ) ; if ( pThis -> bAsyncWrite ) d_pthread_mutex_lock ( & pThis -> mut ) ; CHKiRet ( strmFlushInternal ( pThis , 1 ) ) ; finalize_it : if ( pThis -> bAsyncWrite ) d_pthread_mutex_unlock ( & pThis -> mut ) ; RETiRet ; }
flush stream output buffer to persistent storage.
flush stream output buffer to persistent storage .