GNOME Bugzilla – Bug 159566
[PATCH] Race conditions in deep_notify
Last modified: 2005-07-15 16:30:26 UTC
When running two threads that signal property changes, some of the deep_notify messages get mangled or just disappear. A test app will be submitted to show the problem.
Created attachment 34166 [details] [review] patch to lock the deep_notify signals This adds a recursive lock around the deep_notify signals
Don't we get deadlocks from this if someone sets a property in a deep_notify callback? If there's no deadlocks the patch is ok, if you add a comment about why it's needed to gstobject.c - it's a crude hack after all.
It's a recursive lock. A finer patch would just use a classwide lock instead of a global lock.
Wim, was this applied? Please apply it, including your test app that you are talking about in the opening comment.
This is fixed in HEAD with the class lock, closing.