mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 21:28:21 +00:00
mouse: fix deadlock
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user