Skip to content

Commit 418dd08

Browse files
authored
Implemented Sync for UInputDevice (#111)
-This allows it to be sent between threads
1 parent 8c06285 commit 418dd08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/uinput.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ pub struct UInputDevice {
1212
raw: *mut raw::libevdev_uinput,
1313
}
1414

15+
unsafe impl Sync for UInputDevice {}
1516
unsafe impl Send for UInputDevice {}
1617

1718
impl UInputDevice {

0 commit comments

Comments
 (0)