diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-04-27 18:26:09 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-04-27 18:26:09 +0200 |
commit | dd76d96d676f305aa2d29131321fe5cac5a676c4 (patch) | |
tree | f71b499444c137ea1c9dfccc0dda9c1461e9040d /runtime/wtp.h | |
parent | 4a5a3196fbe4e5a4e9f8dea49f916462adbf3098 (diff) | |
download | rsyslog-dd76d96d676f305aa2d29131321fe5cac5a676c4.tar.gz rsyslog-dd76d96d676f305aa2d29131321fe5cac5a676c4.tar.xz rsyslog-dd76d96d676f305aa2d29131321fe5cac5a676c4.zip |
adapted new atomic instruction emulation to v5 engine
code did not compile after merge from v4
Diffstat (limited to 'runtime/wtp.h')
-rw-r--r-- | runtime/wtp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/wtp.h b/runtime/wtp.h index baeba1a2..7e6b4394 100644 --- a/runtime/wtp.h +++ b/runtime/wtp.h @@ -66,7 +66,8 @@ struct wtp_s { rsRetVal (*pfDoWork)(void *pUsr, void *pWti); /* end user objects */ uchar *pszDbgHdr; /* header string for debug messages */ - DEF_ATOMIC_HELPER_MUT(mutThrdStateChanged); + DEF_ATOMIC_HELPER_MUT(mutCurNumWrkThrd); + DEF_ATOMIC_HELPER_MUT(mutWtpState); }; /* some symbolic constants for easier reference */ @@ -84,7 +85,6 @@ rsRetVal wtpWakeupAllWrkr(wtp_t *pThis); rsRetVal wtpCancelAll(wtp_t *pThis); rsRetVal wtpSetDbgHdr(wtp_t *pThis, uchar *pszMsg, size_t lenMsg); rsRetVal wtpShutdownAll(wtp_t *pThis, wtpState_t tShutdownCmd, struct timespec *ptTimeout); -//void wtpSetThrdStateChanged(wtp_t *pThis, int val); PROTOTYPEObjClassInit(wtp); PROTOTYPEpropSetMethFP(wtp, pfChkStopWrkr, rsRetVal(*pVal)(void*, int)); PROTOTYPEpropSetMethFP(wtp, pfRateLimiter, rsRetVal(*pVal)(void*)); |