aboutsummaryrefslogtreecommitdiff
path: root/hidio.h
diff options
context:
space:
mode:
authorOlaf Matthes <olafmatt@users.sourceforge.net>2006-12-04 16:46:25 +0000
committerOlaf Matthes <olafmatt@users.sourceforge.net>2006-12-04 16:46:25 +0000
commit33ed52de6e66c8767044454b1cf26de1e1b569a7 (patch)
treeb80749ff525a9c79536cb3033e0d314499488189 /hidio.h
parentb0fdf347f5f227f755e673b374005644e9752e83 (diff)
made child thread priority adjustable by user
svn path=/trunk/externals/io/hidio/; revision=6613
Diffstat (limited to 'hidio.h')
-rw-r--r--hidio.h13
1 files changed, 11 insertions, 2 deletions
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;