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/janitor.c
void janitorRun(void)
{
    struct janitorEtry* curr;

    dbgprintf("janitorRun() called\n");
    pthread_mutex_lock(&janitorMut);
    for (curr = janitorRoot; curr != NULL; curr = curr->next)
    {
        DBGPRINTF("janitor: processing entry %p, id '%s'\n", curr, curr->id);
        curr->cb(curr->pUsr);
    }
    pthread_mutex_unlock(&janitorMut);
}
/* run the janitor; all entries are processed */
run the janitor; all entries are processed
run the janitor ; all entries are processed
void janitorRun(void)
{
    struct janitorEtry* curr;
    dbgprintf("janitorRun() called\n");
    pthread_mutex_lock(&janitorMut);
    for (curr = janitorRoot; curr != NULL; curr = curr->next)
    {
        DBGPRINTF("janitor: processing entry %p, id '%s'\n", curr, curr->id);
        curr->cb(curr->pUsr);
    }
    pthread_mutex_unlock(&janitorMut);
}
void janitorRun ( void ) { struct janitorEtry * curr ; dbgprintf ( " \n " ) ; pthread_mutex_lock ( & janitorMut ) ; for ( curr = janitorRoot ; curr != NULL ; curr = curr -> next ) { DBGPRINTF ( " \n " , curr , curr -> id ) ; curr -> cb ( curr -> pUsr ) ; } pthread_mutex_unlock ( & janitorMut ) ; }
run the janitor; all entries are processed
run the janitor ; all entries are processed