GNOME Bugzilla – Bug 636455
basesrc: Avoid taking object locks for just checking tag presence
Last modified: 2010-12-17 10:07:43 UTC
basesrc takes the object lock to check the presence of tags. This can be replaced by an atomic integer.
Created attachment 175836 [details] [review] basesrc: Use an atomic integer instead of a lock for checking tags presence
*** Bug 636454 has been marked as a duplicate of this bug. ***
*** Bug 636452 has been marked as a duplicate of this bug. ***
Looks good but are you sure that this makes that much of a difference?
Looks good to me. One less lock on each src's _loop() is quite nice.
commit 5372e81c9a971195c6b9d2c58a2d472eba3836da Author: Edward Hervey <bilboed@bilboed.com> Date: Sat Dec 4 15:32:06 2010 +0100 basesrc: Use an atomic integer instead of a lock for checking tags presence https://bugzilla.gnome.org/show_bug.cgi?id=636455