summaryrefslogtreecommitdiffstats
path: root/threads.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-08-15 14:02:07 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-08-15 14:02:07 +0200
commitc2f30a2fc3fb1f87c157828dd08ee20fe444833d (patch)
tree6ed707814022350d1313558d28059d7aba0e0631 /threads.c
parent8aa2b21f7fc97e09c02f40815be6e4635ec080ba (diff)
parent9b46c03ce20c2d074bafdd68840461ed89b35ef4 (diff)
downloadrsyslog-c2f30a2fc3fb1f87c157828dd08ee20fe444833d.tar.gz
rsyslog-c2f30a2fc3fb1f87c157828dd08ee20fe444833d.tar.bz2
rsyslog-c2f30a2fc3fb1f87c157828dd08ee20fe444833d.zip
Merge branch 'beta'
Conflicts: ChangeLog
Diffstat (limited to 'threads.c')
-rw-r--r--threads.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/threads.c b/threads.c
index f4f604fc..61ea8f29 100644
--- a/threads.c
+++ b/threads.c
@@ -46,6 +46,7 @@ static linkedList_t llThrds;
*/
static rsRetVal thrdConstruct(thrdInfo_t **ppThis)
{
+ DEFiRet;
thrdInfo_t *pThis;
assert(ppThis != NULL);
@@ -60,7 +61,7 @@ static rsRetVal thrdConstruct(thrdInfo_t **ppThis)
pthread_mutex_init (pThis->mutTermOK, NULL);
*ppThis = pThis;
- return RS_RET_OK;
+ RETiRet;
}
@@ -70,6 +71,7 @@ static rsRetVal thrdConstruct(thrdInfo_t **ppThis)
*/
static rsRetVal thrdDestruct(thrdInfo_t *pThis)
{
+ DEFiRet;
assert(pThis != NULL);
if(pThis->bIsActive == 1) {
@@ -78,7 +80,7 @@ static rsRetVal thrdDestruct(thrdInfo_t *pThis)
free(pThis->mutTermOK);
free(pThis);
- return RS_RET_OK;
+ RETiRet;
}
@@ -86,6 +88,7 @@ static rsRetVal thrdDestruct(thrdInfo_t *pThis)
*/
rsRetVal thrdTerminate(thrdInfo_t *pThis)
{
+ DEFiRet;
assert(pThis != NULL);
pthread_cancel(pThis->thrdID);
@@ -96,7 +99,7 @@ rsRetVal thrdTerminate(thrdInfo_t *pThis)
if(pThis->pAfterRun != NULL)
pThis->pAfterRun(pThis);
- return RS_RET_OK;
+ RETiRet;
}
@@ -104,8 +107,9 @@ rsRetVal thrdTerminate(thrdInfo_t *pThis)
*/
rsRetVal thrdTerminateAll(void)
{
+ DEFiRet;
llDestroy(&llThrds);
- return RS_RET_OK;
+ RETiRet;
}