[Webkit-unassigned] [Bug 39893] Explicitly use PTHREAD_MUTEX_NORMAL to create pthread mutex

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 28 15:33:42 PDT 2010


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





--- Comment #7 from Yong Li <yong.li.webkit at gmail.com>  2010-05-28 15:33:41 PST ---
The other solution is:

1) add a flag in Mutex:

#ifndef NDEBUG
bool isLocked() const { return m_isLocked; }
bool m_isLocked;
#endif

2) set it in lock() and unlock()

3) change assertions to ASSERT(mutex.isLocked())

-- 
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