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/msg.c
smsg_t* MsgAddRef(smsg_t* const pM)
    {
        assert(pM != NULL);
#ifdef HAVE_ATOMIC_BUILTINS
        ATOMIC_INC(&pM->iRefCount, NULL);
#else
        MsgLock(pM);
        pM->iRefCount++;
        MsgUnlock(pM);
#endif
        /* DEV debugging only! dbgprintf("MsgAddRef\t0x%x done, Ref now: %d\n",
         * (int)pM, pM->iRefCount);*/
        return (pM);
    }
/* Increment reference count - see description of the "msg"
     * structure for details. As a convenience to developers,
     * this method returns the msg pointer that is passed to it.
     * It is recommended that it is called as follows:
     *
     * pSecondMsgPointer = MsgAddRef(pOrgMsgPointer);
     */
Increment reference count - see description of the "msg"
structure for details. As a convenience to developers,
this method returns the msg pointer that is passed to it.
It is recommended that it is called as follows.


Increment reference count - see description of the " msg " structure for details . As a convenience to developers this method returns the msg pointer that is passed to it . It is recommended that it is called as follows .
smsg_t* MsgAddRef(smsg_t* const pM)
    {
        assert(pM != NULL);
#ifdef HAVE_ATOMIC_BUILTINS
        ATOMIC_INC(&pM->iRefCount, NULL);
#else
        MsgLock(pM);
        pM->iRefCount++;
        MsgUnlock(pM);
#endif
        return (pM);
    }
smsg_t * MsgAddRef ( smsg_t * const pM ) { assert ( pM != NULL ) ; #ifdef HAVE_ATOMIC_BUILTINS ATOMIC_INC ( & pM -> iRefCount , NULL ) ; #else MsgLock ( pM ) ; pM -> iRefCount ++ ; MsgUnlock ( pM ) ; #endif return ( pM ) ; }
Increment reference count - see description of the "msg"
 structure for details.
Increment reference count - see description of the " msg " structure for details .
/* DEV debugging only! dbgprintf("MsgAddRef\t0x%x done, Ref now: %d\n",
         * (int)pM, pM->iRefCount);*/