open and close threads
This commit is contained in:
commit
2d40a35a48
10 changed files with 222 additions and 0 deletions
12
input_dev.h
Normal file
12
input_dev.h
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue