Lines Matching full:prepare
39 // GLib sources have four callbacks: Prepare, Check, Dispatch and Finalize.
40 // On each iteration of the GLib pump, it calls each source's Prepare function.
43 // Prepare should be called again (it may be called sooner).
44 // After the Prepare calls, GLib does a poll to check for events from the
46 // if none of the Prepare calls returned TRUE. It will block indefinitely, or
47 // by the minimum time returned by a source in Prepare.
49 // from Prepare. The return value of Check has the same meaning as for Prepare,
53 // (i.e., you can call Run from them), but Prepare and Check cannot.
64 // - Call prepare on all the sources.
68 // - Return true if any of prepare() or check() returned true.
74 // Thus it is important to only return true from prepare or check if we
76 // internal state consistent so that if prepare/check return true when called