summaryrefslogtreecommitdiffstats
path: root/msg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-20 12:58:06 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-20 12:58:06 +0000
commit1c19ea57da83367b13e761b0ab3c316fef6e9eb8 (patch)
treea95152f1f0f8c08937b54d6989a1b0e3d1335acf /msg.c
parentd0382f92a90238a03ceccfe0625ae037979c68db (diff)
downloadrsyslog-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.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/msg.c b/msg.c
index 6dd4094b..921078b8 100644
--- a/msg.c
+++ b/msg.c
@@ -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:
*/