diff --git a/input_dev.c b/input_dev.c index a5e1c40..b066662 100644 --- a/input_dev.c +++ b/input_dev.c @@ -100,6 +100,7 @@ static void* iio_read_thread_func(void* ptr) { if ((ctx->messages[h].flags & MESSAGE_FLAGS_HANDLE_DONE) != 0) { msg = &ctx->messages[h]; msg->ev_count = 0; + printf("FOUND ONE!!!!"); break; } } @@ -445,6 +446,7 @@ void *input_dev_thread_func(void *ptr) { }; for (int h = 0; h < MAX_MESSAGES_IN_FLIGHT; ++h) { + printf("INIT!!!!"); ctx.messages[h].flags = MESSAGE_FLAGS_HANDLE_DONE; ctx.messages[h].ev_size = DEFAULT_EVENTS_IN_REPORT; ctx.messages[h].ev = malloc(sizeof(struct input_event) * ctx.messages[h].ev_size); diff --git a/output_dev.c b/output_dev.c index 9fab7fa..38714f2 100644 --- a/output_dev.c +++ b/output_dev.c @@ -412,6 +412,7 @@ void *output_dev_thread_func(void *ptr) { } // from now on it's forbidden to use this memory + printf("HANDLED!!!!"); msg->flags |= MESSAGE_FLAGS_HANDLE_DONE; } else if (pop_res == -1) { // timed out read