mirror of
https://github.com/htrefil/rkvm.git
synced 2024-11-17 07:47:45 +01:00
Clarify comment
This commit is contained in:
parent
d071f7d89c
commit
416e213478
1 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,8 @@ impl EventWriter {
|
||||||
|
|
||||||
pub(crate) async fn write_raw(&mut self, event: input_event) -> Result<(), Error> {
|
pub(crate) async fn write_raw(&mut self, event: input_event) -> Result<(), Error> {
|
||||||
// As far as tokio is concerned, the FD never becomes ready for writing, so just write it normally.
|
// As far as tokio is concerned, the FD never becomes ready for writing, so just write it normally.
|
||||||
// If an error happens, it will be propagated to caller, so it shouldn't be an issue.
|
// If an error happens, it will be propagated to caller and the FD is opened in nonblocking mode anyway,
|
||||||
|
// so it shouldn't be an issue.
|
||||||
let ret = unsafe {
|
let ret = unsafe {
|
||||||
glue::libevdev_uinput_write_event(
|
glue::libevdev_uinput_write_event(
|
||||||
self.uinput as *const _,
|
self.uinput as *const _,
|
||||||
|
|
Loading…
Reference in a new issue