Package ch.bailu.gtk.glib
Interface MainContext.OnPollFunc
- Enclosing class:
- MainContext
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionint
onPollFunc
(CallbackHandler __self, PollFD ufds, int nfsd, int timeout_) Specifies the type of function passed to g_main_context_set_poll_func().
-
Method Details
-
onPollFunc
Specifies the type of function passed to g_main_context_set_poll_func().
The semantics of the function should match those of the poll() system call.- Parameters:
ufds
- an array of #GPollFD elementsnfsd
- the number of elements in @ufdstimeout_
- the maximum time to wait for an event of the file descriptors. A negative value indicates an infinite timeout.- Returns:
- the number of #GPollFD elements which have events or errors reported, or -1 if an error occurred.
-