diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-20 12:58:06 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-20 12:58:06 +0000 |
commit | 1c19ea57da83367b13e761b0ab3c316fef6e9eb8 (patch) | |
tree | a95152f1f0f8c08937b54d6989a1b0e3d1335acf /msg.c | |
parent | d0382f92a90238a03ceccfe0625ae037979c68db (diff) | |
download | rsyslog-1c19ea57da83367b13e761b0ab3c316fef6e9eb8.tar.gz rsyslog-1c19ea57da83367b13e761b0ab3c316fef6e9eb8.tar.xz rsyslog-1c19ea57da83367b13e761b0ab3c316fef6e9eb8.zip |
defined some macros for further use with advanced multithreading
Diffstat (limited to 'msg.c')
-rw-r--r-- | msg.c | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -40,11 +40,19 @@ #include "srUtils.h" #include "msg.h" -/* rgerhards 2004-11-09: helper routines for handling the - * message object. We do only the most important things. It - * is our firm hope that this will sooner or later be - * obsoleted by liblogging. +/* The following functions will support advanced output module + * multithreading, once this is implemented. Currently, we + * include them as hooks only. The idea is that we need to guard + * some msg objects data fields against concurrent access if + * we run on multiple threads. Please note that in any case this + * is not necessary for calls from INPUT modules, because they + * construct the message object and do this serially. Only when + * the message is in the processing queue, multiple threads may + * access a single object. + * rgerhards, 2007-07-20 */ +#define MsgLock(pMsg) +#define MsgUnLock(pMsg) /* "Constructor" for a msg "object". Returns a pointer to @@ -1034,8 +1042,6 @@ void MsgSetRawMsg(msg_t *pMsg, char* pszRawMsg) } - - /* * vi:set ai: */ |