| 126 | } |
| 127 | |
| 128 | static void free_hid_device(hid_device *dev) |
| 129 | { |
| 130 | /* Clean up the thread objects */ |
| 131 | //pthread_barrier_destroy(&dev->barrier); |
| 132 | //pthread_cond_destroy(&dev->condition); |
| 133 | //pthread_mutex_destroy(&dev->mutex); |
| 134 | |
| 135 | /* Free the device itself */ |
| 136 | free(dev); |
| 137 | } |
| 138 | |
| 139 | #ifdef WIN32 |
| 140 | #define CLOCK_REALTIME 0 |