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/rsyslog.c
rsRetVal rsrtExit(void)
{
    DEFiRet;

    if (iRefCount == 1)
    {
        /* do actual de-init only if we are the last runtime user */
        confClassExit();
        glblClassExit();
        rulesetClassExit();
        wtiClassExit();
        wtpClassExit();
        strgenClassExit();
        propClassExit();
        statsobjClassExit();

        objClassExit(); /* *THIS* *MUST/SHOULD?* always be the first class
                initilizer being called (except debug)! */
    }

    --iRefCount;
    /* TODO we must deinit this pointer! pObjIF = NULL; / * no longer exists for
     * this caller */

    dbgprintf("rsyslog runtime de-initialized, current users %d\n", iRefCount);

    RETiRet;
}
/* globally de-initialze the runtime system
 * NOTE: this is NOT thread safe and must not be called concurrently. If that
 * ever poses a problem, we may use proper mutex calls - not considered needed
 * yet. This function must be provided with the caller's obj object pointer.
 * This is automatically deinitialized by the runtime system. rgerhards,
 * 2008-04-16
 */
globally de-initialze the runtime system
NOTE: this is NOT thread safe and must not be called concurrently. If that
ever poses a problem, we may use proper mutex calls - not considered needed
yet. This function must be provided with the caller's obj object pointer.
This is automatically deinitialized by the runtime system.
globally de - initialze the runtime system NOTE : this is NOT thread safe and must not be called concurrently . If that ever poses a problem we may use proper mutex calls - not considered needed yet . This function must be provided with the caller ' s obj object pointer . This is automatically deinitialized by the runtime system .
rsRetVal rsrtExit(void)
{
    DEFiRet;
    if (iRefCount == 1)
    {
        confClassExit();
        glblClassExit();
        rulesetClassExit();
        wtiClassExit();
        wtpClassExit();
        strgenClassExit();
        propClassExit();
        statsobjClassExit();
        objClassExit(); 
    }
    --iRefCount;
    dbgprintf("rsyslog runtime de-initialized, current users %d\n", iRefCount);
    RETiRet;
}
rsRetVal rsrtExit ( void ) { DEFiRet ; if ( iRefCount == 1 ) { confClassExit ( ) ; glblClassExit ( ) ; rulesetClassExit ( ) ; wtiClassExit ( ) ; wtpClassExit ( ) ; strgenClassExit ( ) ; propClassExit ( ) ; statsobjClassExit ( ) ; objClassExit ( ) ; } -- iRefCount ; dbgprintf ( " \n " , iRefCount ) ; RETiRet ; }
globally de-initialze the runtime system
 NOTE: this is NOT thread safe and must not be called concurrently.
globally de - initialze the runtime system NOTE : this is NOT thread safe and must not be called concurrently .
/* do actual de-init only if we are the last runtime user */ /* *THIS* *MUST/SHOULD?* always be the first class
                initilizer being called (except debug)! */ /* TODO we must deinit this pointer! pObjIF = NULL; / * no longer exists for
     * this caller */