http://bugzilla.moblin.org/show_bug.cgi?id=6376
--- Comment #17 from Chen Congwu <congwu.chen(a)intel.com> 2009-12-24 20:45:30 PST
---
(In reply to comment #16)
Just one minor issue: the source may already have been removed due to a
timeout.
+InfoReq::Status InfoReq::wait(InfoMap &response, uint32_t interval)
+{
+ check();
+ if(m_status == ST_RUN) {
+ guint checkSource = g_timeout_add_seconds(interval,
+ (GSourceFunc) checkCallback,
+ static_cast<gpointer>(this));
+ while(m_status == ST_RUN) {
+ g_main_context_iteration(g_main_loop_get_context(m_server.getLoop()), true);
+ }
+ g_source_remove(checkSource);
+ }
+ if (m_status == ST_OK) {
+ response = m_response;
+ }
+ return m_status;
+}
the patches are ready on branch 'mb6376'. Congwu, please help
review.
--
Configure bugmail:
http://bugzilla.moblin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching someone on the CC list of the bug.