Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 154598 Details for
Bug 239945
liferea keeps waking up the cpu a lot
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to fix the 100ms timer
liferea.patch (text/plain), 1.92 KB, created by
Arjan van de Ven
on 2007-05-13 02:52:05 UTC
(
hide
)
Description:
Patch to fix the 100ms timer
Filename:
MIME Type:
Creator:
Arjan van de Ven
Created:
2007-05-13 02:52:05 UTC
Size:
1.92 KB
patch
obsolete
>--- 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,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 239945
: 154598