mouse: fix deadlock

This commit is contained in:
Matheus
2024-04-20 15:46:17 -03:00
parent 65ca92b3a3
commit d10de37498
5 changed files with 25 additions and 10 deletions
+2
View File
@@ -3,6 +3,7 @@
#include <ringbuffer.h>
#include <kernel/poll.h>
#include <mutex.h>
#define MOUSE_FLAG_RB 1
#define MOUSE_FLAG_MB 2
@@ -20,6 +21,7 @@ typedef struct {
spinlock_t lock;
pollheader_t pollheader;
int flags;
mutex_t readmutex;
} mouse_t;
void mouse_init();