rpms/liferea/devel liferea-timer.patch, NONE, 1.1 liferea.spec, 1.75, 1.76

Brian Pepple (bpepple) fedora-extras-commits at redhat.com
Sun May 13 03:59:00 UTC 2007


Author: bpepple

Update of /cvs/pkgs/rpms/liferea/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15550

Modified Files:
	liferea.spec 
Added Files:
	liferea-timer.patch 
Log Message:
* Sat May 12 2007 Brian Pepple <bpepple at fedoraproject.org> - 1.2.10c-2
- Add patch to fix cpu from waking up frequently. (#239945)


liferea-timer.patch:

--- NEW FILE liferea-timer.patch ---
--- liferea-1.2.10/src/update.c.org	2007-05-12 19:45:32.000000000 -0700
+++ liferea-1.2.10/src/update.c	2007-05-12 19:49:32.000000000 -0700
@@ -59,6 +59,8 @@ static GAsyncQueue	*requests_high_prio =
 static GAsyncQueue	*requests_normal_prio = NULL;
 static GAsyncQueue	*results = NULL;
 
+static guint		results_timer = 0;
+
 /* condition mutex for offline mode */
 static GMutex	*cond_mutex = NULL;
 static GCond	*offline_cond = NULL;
@@ -70,6 +72,8 @@ static libnm_glib_ctx *nm_ctx = NULL;
 static guint nm_id = 0;
 #endif
 
+static gboolean update_dequeue_results(gpointer user_data);
+
 /* update state interface */
 
 updateStatePtr update_state_new(void) {
@@ -420,6 +424,13 @@ static void *update_dequeue_requests(voi
 			/* return the request so the GUI thread can merge the feeds and display the results... */
 			debug1(DEBUG_UPDATE, "request (%s) finished", request->source);
 			g_async_queue_push(results, (gpointer)request);
+			if (!results_timer) 
+				results_timer = g_timeout_add_full(G_PRIORITY_DEFAULT_IDLE,
+		                   100, 
+				   update_dequeue_results, 
+				   NULL,
+				   NULL);
+
 		}
 	}
 }
@@ -532,6 +543,8 @@ gboolean update_request_cancel_retry(req
 static gboolean update_dequeue_results(gpointer user_data) {
 	requestPtr	request;
 	request_cb	callback;
+
+	results_timer = 0;
 	
 	while(NULL != (request = g_async_queue_try_pop(results))) {
 		callback = request->callback;
@@ -564,7 +577,7 @@ static gboolean update_dequeue_results(g
 		/* Normal result processing */
 		(callback)(request);
 	}
-	return TRUE;
+	return FALSE;
 }
 
 void update_init(void) {
@@ -587,7 +600,7 @@ void update_init(void) {
 		g_thread_create(update_dequeue_requests, GINT_TO_POINTER((i == 0)), FALSE, NULL);
 
 	/* setup the processing of feed update results */
-	g_timeout_add_full(G_PRIORITY_DEFAULT_IDLE,
+	results_timer = g_timeout_add_full(G_PRIORITY_DEFAULT_IDLE,
 	                   100, 
 			   update_dequeue_results, 
 			   NULL,


Index: liferea.spec
===================================================================
RCS file: /cvs/pkgs/rpms/liferea/devel/liferea.spec,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -r1.75 -r1.76
--- liferea.spec	5 Apr 2007 20:30:26 -0000	1.75
+++ liferea.spec	13 May 2007 03:58:25 -0000	1.76
@@ -1,6 +1,6 @@
 Name:           liferea
 Version:        1.2.10c
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        An RSS/RDF feed reader
 
 Group:          Applications/Internet
@@ -8,6 +8,7 @@
 URL:            http://liferea.sourceforge.net/
 Source0:        http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 Patch0:		%{name}-1.2.10-fedorafeed.patch
+Patch1:		%{name}-timer.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  gtkhtml2-devel
@@ -40,6 +41,7 @@
 %prep
 %setup -q -n %{name}-1.2.10
 %patch0 -p1 -b .fedorafeed
+%patch1 -p1 -b .timer
 
 
 %build
@@ -112,6 +114,9 @@
 
 
 %changelog
+* Sat May 12 2007 Brian Pepple <bpepple at fedoraproject.org> - 1.2.10c-2
+- Add patch to fix cpu from waking up frequently. (#239945)
+
 * Thu Apr  5 2007 Brian Pepple <bpepple at fedoraproject.org> - 1.2.10c-1
 - Update to 1.2.10c.
 - Update feed patch.




More information about the fedora-extras-commits mailing list