From 33ed52de6e66c8767044454b1cf26de1e1b569a7 Mon Sep 17 00:00:00 2001 From: Olaf Matthes Date: Mon, 4 Dec 2006 16:46:25 +0000 Subject: made child thread priority adjustable by user svn path=/trunk/externals/io/hidio/; revision=6613 --- hidio.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'hidio.h') diff --git a/hidio.h b/hidio.h index 8c15eb4..4bb6f18 100644 --- a/hidio.h +++ b/hidio.h @@ -48,7 +48,15 @@ typedef void t_clock; #define HIDIO_MAJOR_VERSION 0 #define HIDIO_MINOR_VERSION 0 -/* static char *version = "$Revision: 1.7 $"; */ +/* static char *version = "$Revision: 1.8 $"; */ + +/*------------------------------------------------------------------------------ + * MACRO DEFINES + */ + +#ifndef CLIP +#define CLIP(a, lo, hi) ( (a)>(lo)?( (a)<(hi)?(a):(hi) ):(lo) ) +#endif /*------------------------------------------------------------------------------ * GLOBAL DEFINES @@ -109,7 +117,8 @@ typedef struct _hidio pthread_mutex_t x_mutex; pthread_cond_t x_requestcondition; pthread_cond_t x_answercondition; - pthread_t x_thread; + pthread_t x_thread; + t_int x_priority; } t_hidio; -- cgit v1.2.1