diff options
author | Dražen Kačar <dave@fly.srk.fer.hr> | 2011-01-10 12:39:23 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-01-10 12:39:23 +0100 |
commit | 7742b2182fc017ca4c9fcfe3b26f4c8d68a9bd58 (patch) | |
tree | 5105b0ff2a8ea76a0729d57111545e5858124daf /runtime/rsyslog.h | |
parent | c4026ec0f8d843540d01b07f94d4182d7dddb62e (diff) | |
download | rsyslog-7742b2182fc017ca4c9fcfe3b26f4c8d68a9bd58.tar.gz rsyslog-7742b2182fc017ca4c9fcfe3b26f4c8d68a9bd58.tar.xz rsyslog-7742b2182fc017ca4c9fcfe3b26f4c8d68a9bd58.zip |
improved imudp real-time scheduling support & bugfix
The original code had quite some issues, which are fixed by this
commit. Also we do more error checking now.
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
Diffstat (limited to 'runtime/rsyslog.h')
-rw-r--r-- | runtime/rsyslog.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/rsyslog.h b/runtime/rsyslog.h index 3e6ac4af..0742a2ed 100644 --- a/runtime/rsyslog.h +++ b/runtime/rsyslog.h @@ -25,6 +25,7 @@ */ #ifndef INCLUDED_RSYSLOG_H #define INCLUDED_RSYSLOG_H +#include <pthread.h> #include "typedefs.h" /* ############################################################# * @@ -411,6 +412,12 @@ typedef enum rsObjectID rsObjID; #define RSFREEOBJ(x) {(x)->OID = OIDrsFreed; free(x);} #endif +#ifdef HAVE_PTHREAD_SETSCHEDPARAM +extern struct sched_param default_sched_param; +extern pthread_attr_t default_thread_attr; +extern int default_thr_sched_policy; +#endif + /* for the time being, we do our own portability handling here. It * looks like autotools either does not yet support checks for it, or |