diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-02-02 15:51:01 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-02-02 15:51:01 +0100 |
commit | 38cb3926727c0ad29f3950db43ba12248e867b89 (patch) | |
tree | 5062cb4f81766ab983971126974a914e3fb4f360 /threads.h | |
parent | acda58b561b92d21df685d03cc703b5792d9d72b (diff) | |
download | rsyslog-38cb3926727c0ad29f3950db43ba12248e867b89.tar.gz rsyslog-38cb3926727c0ad29f3950db43ba12248e867b89.tar.xz rsyslog-38cb3926727c0ad29f3950db43ba12248e867b89.zip |
replaced data type "bool" by "sbool" because this created some portability issues
Diffstat (limited to 'threads.h')
-rw-r--r-- | threads.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -32,7 +32,7 @@ struct thrdInfo { rsRetVal (*pUsrThrdMain)(struct thrdInfo*); /* user thread main to be called in new thread */ rsRetVal (*pAfterRun)(struct thrdInfo*); /* cleanup function */ pthread_t thrdID; - bool bNeedsCancel; /* must input be terminated by pthread_cancel()? */ + sbool bNeedsCancel; /* must input be terminated by pthread_cancel()? */ }; /* prototypes */ @@ -40,7 +40,7 @@ rsRetVal thrdExit(void); rsRetVal thrdInit(void); rsRetVal thrdTerminate(thrdInfo_t *pThis); rsRetVal thrdTerminateAll(void); -rsRetVal thrdCreate(rsRetVal (*thrdMain)(thrdInfo_t*), rsRetVal(*afterRun)(thrdInfo_t *), bool); +rsRetVal thrdCreate(rsRetVal (*thrdMain)(thrdInfo_t*), rsRetVal(*afterRun)(thrdInfo_t *), sbool); /* macros (replace inline functions) */ |