diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-12-06 17:03:51 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-12-06 17:03:51 +0100 |
commit | 27e0f06b17b59e5de7db94ec1d0e74369536373a (patch) | |
tree | c9dcaf1dddc64755ef1db3203230adc9819a3895 /runtime/msg.h | |
parent | bfae69d68b0032a383821a54bc52aeff36a90e52 (diff) | |
parent | 3495720a2f6bc69ccba4c0d978ee815812cc9b75 (diff) | |
download | rsyslog-27e0f06b17b59e5de7db94ec1d0e74369536373a.tar.gz rsyslog-27e0f06b17b59e5de7db94ec1d0e74369536373a.tar.bz2 rsyslog-27e0f06b17b59e5de7db94ec1d0e74369536373a.zip |
Merge branch 'v6-stable-newmsglock' into v7-stable-newmsglock
Conflicts:
tools/syslogd.c
Diffstat (limited to 'runtime/msg.h')
-rw-r--r-- | runtime/msg.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/runtime/msg.h b/runtime/msg.h index 396e861f..ab479001 100644 --- a/runtime/msg.h +++ b/runtime/msg.h @@ -64,7 +64,6 @@ struct msg { once data has entered the queue, this property is no longer needed. */ pthread_mutex_t mut; int iRefCount; /* reference counter (0 = unused) */ - sbool bDoLock; /* use the mutex? */ sbool bAlreadyFreed; /* aid to help detect a well-hidden bad bug -- TODO: remove when no longer needed */ sbool bParseSuccess; /* set to reflect state of last executed higher level parser */ short iSeverity; /* the severity 0..7 */ @@ -177,7 +176,6 @@ uchar *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe, char *textpri(char *pRes, size_t pResLen, int pri); rsRetVal msgGetMsgVar(msg_t *pThis, cstr_t *pstrPropName, var_t **ppVar); es_str_t* msgGetMsgVarNew(msg_t *pThis, uchar *name); -rsRetVal MsgEnableThreadSafety(void); uchar *getRcvFrom(msg_t *pM); void getTAG(msg_t *pM, uchar **ppBuf, int *piLen); char *getTimeReported(msg_t *pM, enum tplFormatTypes eFmt); @@ -213,16 +211,6 @@ msgUnsetJSON(msg_t *pMsg, uchar *varname) { } -/* The MsgPrepareEnqueue() function is a macro for performance reasons. - * It needs one global variable to work. This is acceptable, as it gains - * us quite some performance and is fully abstracted using this header file. - * The important thing is that no other module is permitted to actually - * access that global variable! -- rgerhards, 2008-01-05 - */ -extern void (*funcMsgPrepareEnqueue)(msg_t *pMsg); -#define MsgPrepareEnqueue(pMsg) funcMsgPrepareEnqueue(pMsg) - - /* ------------------------------ some inline functions ------------------------------ */ /* set raw message size. This is needed in some cases where a trunctation is necessary |