diff options
author | Olaf Matthes <olafmatt@users.sourceforge.net> | 2006-12-04 16:46:25 +0000 |
---|---|---|
committer | Olaf Matthes <olafmatt@users.sourceforge.net> | 2006-12-04 16:46:25 +0000 |
commit | 33ed52de6e66c8767044454b1cf26de1e1b569a7 (patch) | |
tree | b80749ff525a9c79536cb3033e0d314499488189 /hidio.h | |
parent | b0fdf347f5f227f755e673b374005644e9752e83 (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.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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; |