summaryrefslogtreecommitdiffstats
path: root/threads.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-03 09:44:54 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-03 09:44:54 +0000
commit29d9729292d44d2827054a1aef27278f3dadd57e (patch)
treedcede7f015fd4c4d1ef7ccd311a505bfdc79e1c2 /threads.h
parenta05de60a5670c759b5dbe6e60bbac8fe9332420d (diff)
downloadrsyslog-29d9729292d44d2827054a1aef27278f3dadd57e.tar.gz
rsyslog-29d9729292d44d2827054a1aef27278f3dadd57e.tar.xz
rsyslog-29d9729292d44d2827054a1aef27278f3dadd57e.zip
moved queue code to its own module (finally)
Diffstat (limited to 'threads.h')
-rw-r--r--threads.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/threads.h b/threads.h
index 6bf1e3b1..b0cc9221 100644
--- a/threads.h
+++ b/threads.h
@@ -41,17 +41,6 @@ typedef struct thrdInfo {
pthread_t thrdID;
} thrdInfo_t;
-/* this is the first approach to a queue, this time with static
- * memory.
- */
-typedef struct {
- void** pbuf;
- long head, tail;
- int full, empty;
- pthread_mutex_t *mut;
- pthread_cond_t *notFull, *notEmpty;
-} msgQueue;
-
/* prototypes */
rsRetVal thrdExit(void);
rsRetVal thrdInit(void);
@@ -59,15 +48,6 @@ rsRetVal thrdTerminate(thrdInfo_t *pThis);
rsRetVal thrdTerminateAll(void);
rsRetVal thrdCreate(rsRetVal (*thrdMain)(thrdInfo_t*), eTermSyncType_t eTermSyncType, rsRetVal(*afterRun)(thrdInfo_t *));
rsRetVal thrdSleep(thrdInfo_t *pThis, int iSeconds, int iuSeconds);
-msgQueue *queueInit (void);
-void queueDelete (msgQueue *q);
-void queueAdd (msgQueue *q, void* in);
-void queueDel (msgQueue *q, void **out);
-
-/* go-away's */
-extern int iMainMsgQueueSize;
-extern msgQueue *pMsgQueue;
-
/* macros (replace inline functions) */
/*TODO: remove these macros once we now we can live without -- rgerhards, 2007-12-20