open and close threads

This commit is contained in:
Denis Benato 2023-11-02 12:02:29 +01:00
commit 2d40a35a48
10 changed files with 222 additions and 0 deletions

12
input_dev.h Normal file
View file

@ -0,0 +1,12 @@
#pragma once
#include <inttypes.h>
#include <pthread.h>
#define INPUT_DEV_CTRL_FLAG_EXIT 0x00000001U
#define INPUT_DEV_CTRL_FLAG_DATA 0x00000002U
typedef struct input_dev {
pthread_mutex_t ctrl_mutex;
uint32_t crtl_flags;
} input_dev_t;