-
inside it: #[doc(alias = "g_unix_fd_add_full")]
pub fn unix_fd_add_local<F>(fd: RawFd, condition: IOCondition, func: F) -> SourceId
where
F: FnMut(RawFd, IOCondition) -> ControlFlow + 'static,
{
unsafe {
let context = MainContext::default();
let _acquire = context
.acquire()
.expect("default main context already acquired by another thread");
from_glib(ffi::g_unix_fd_add_full(
ffi::G_PRIORITY_DEFAULT,
fd,
condition.into_glib(),
Some(trampoline_unix_fd_local::<F>),
into_raw_unix_fd_local(func),
Some(destroy_closure_unix_fd_local::<F>),
))
}
} and there's no i need to set it's priority to |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
it says that the priority of redraw is weird... EDIT: OH NO, it's |
Beta Was this translation helpful? Give feedback.
-
ok, after forking a bunch of things and managed to deal with a lot of version issues... and it works perfectly, issue sloved. but i can not maintain all by myself, i'll be grateful if |
Beta Was this translation helpful? Give feedback.
-
#1614 got merged, wait until a release then |
Beta Was this translation helpful? Give feedback.
#1614 got merged, wait until a release then