Home | History | Annotate | Download | only in base

Lines Matching refs:source

2 // Use of this source code is governed by a BSD-style license that can be
40 // On each iteration of the GLib pump, it calls each source's Prepare function.
47 // by the minimum time returned by a source in Prepare.
48 // After the poll, GLib calls Check for each source that returned FALSE
51 // Finally, GLib calls Dispatch for each source that is ready. If Dispatch
52 // returns FALSE, GLib will destroy the source. Dispatch calls may be recursive
54 // Finalize is called when the source is destroyed.
91 gboolean WorkSourcePrepare(GSource* source,
93 *timeout_ms = static_cast<WorkSource*>(source)->pump->HandlePrepare();
100 gboolean WorkSourceCheck(GSource* source) {
102 return static_cast<WorkSource*>(source)->pump->HandleCheck();
105 gboolean WorkSourceDispatch(GSource* source,
109 static_cast<WorkSource*>(source)->pump->HandleDispatch();
110 // Always return TRUE so our source stays registered.