Schnittstelle MainContext.OnPollFunc

Umschließende Klasse:
MainContext
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface MainContext.OnPollFunc
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    int
    onPollFunc(CallbackHandler __self, PollFD ufds, int nfsd, int timeout_)
    Specifies the type of function passed to g_main_context_set_poll_func().
  • Methodendetails

    • onPollFunc

      int onPollFunc(CallbackHandler __self, @Nonnull PollFD ufds, int nfsd, int timeout_)
      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.
      Parameter:
      ufds - an array of #GPollFD elements
      nfsd - the number of elements in @ufds
      timeout_ - the maximum time to wait for an event of the file descriptors. A negative value indicates an infinite timeout.
      Gibt zurück:
      the number of #GPollFD elements which have events or errors reported, or -1 if an error occurred.