summaryrefslogtreecommitdiffstats
path: root/action.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-01-19 15:24:16 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2012-01-19 15:24:16 +0100
commit3fe63651667d3b74c2f9c97824cb9ed65913a99e (patch)
tree918889a059e7c85c351715f48adf26758df9a251 /action.h
parent4124fa03f6ce58893642342a48eee5fe0cf5d478 (diff)
downloadrsyslog-3fe63651667d3b74c2f9c97824cb9ed65913a99e.tar.gz
rsyslog-3fe63651667d3b74c2f9c97824cb9ed65913a99e.tar.xz
rsyslog-3fe63651667d3b74c2f9c97824cb9ed65913a99e.zip
refactor: remove very old sync.[ch] system for "abstracting" mutex access
This was a bad idea that never was used much.
Diffstat (limited to 'action.h')
-rw-r--r--action.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/action.h b/action.h
index fbfee37a..4da0be24 100644
--- a/action.h
+++ b/action.h
@@ -26,7 +26,6 @@
#define ACTION_H_INCLUDED 1
#include "syslogd-types.h"
-#include "sync.h"
#include "queue.h"
/* external data - this is to be removed when we change the action
@@ -85,7 +84,7 @@ struct action_s {
* processed - it is also used to detect duplicates.
*/
qqueue_t *pQueue; /* action queue */
- SYNC_OBJ_TOOL; /* required for mutex support */
+ pthread_mutex_t mutAction; /* primary action mutex */
pthread_mutex_t mutActExec; /* mutex to guard actual execution of doAction for single-threaded modules */
uchar *pszName; /* action name (for documentation) */
DEF_ATOMIC_HELPER_MUT(mutCAS);