[Webkit-unassigned] [Bug 42826] Crash in WaitForMultipleObjects in WorkQueue because WorkQueue keeps waiting on closed HANDLEs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 22 08:40:41 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=42826





--- Comment #4 from Adam Roben (aroben) <aroben at apple.com>  2010-07-22 08:40:41 PST ---
(In reply to bug 42785 comment #8)
> I think using a pair of events will work. The first event will be used to tell the work queue thread to stop waiting. The second event will be used to tell the main thread that waiting has stopped.

Anders informed me that this is not a good strategy. Waiting on the work queue thread is dangerous because the work queue thread might wait on the first thread, resulting in a deadlock.

I think adding an unregisterAndCloseHandle function to WorkQueue might be the way to go. We'd add the handle to a m_handlesToClose Vector and signal m_performWorkEvent. Then the work queue thread would close all handles in m_handlesToClose when it wakes up.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list