GNOME Bugzilla – Bug 678052
g_wakeup_acknowledge is called too often.
Last modified: 2012-06-19 13:37:41 UTC
Created attachment 216345 [details] [review] Patch. I think there was a typo in the following commit: http://git.gnome.org/browse/glib/commit/?h=glib-2-32&id=7eae486179e2799c369ed9ffcea663bf9161ce79 "events" should be "revents". Since context->wake_up_rec.events is always nonzero at this point, the result of the typo is that g_wakeup_acknowledge is called much more often than necessary.
I agree. What's the deal with reorganising the 'else' part, though? If you're right (and I think you are) the assignment was *never* occurring before. Now you want it to always occur. Explain?
Review of attachment 216345 [details] [review]: Sorry. My bad. I read the linked commit as if it were your proposed patch. :) What you have here looks correct. Please commit.
(In reply to comment #2) > Review of attachment 216345 [details] [review]: > > Sorry. My bad. I read the linked commit as if it were your proposed patch. > :) > > What you have here looks correct. Please commit. I don't have commit privileges (to the best of my knowledge). Can you commit it for me?
Thanks for applying the patch. One minor nitpick: The commit message is misleading. The problem wasn't that we were waking up unnecessarily. The problem was that we were *acknowledging* a wakeup when a wakeup hadn't in fact occurred.
Oh, sorry. Next time, please provide a git-formatted patch, then I won't have to make up my own commit message.