[webkit-dev] Expected behavior of Mutex.lock()
atwilson at google.com
Tue Jun 9 11:09:05 PDT 2009
Any insights here? I'd be happy to add some documentation to Mutex if
someone can verify what the intended behavior is...
-atw "sending emails to webkit-dev during WWDC is probably futile, I know
On Sat, Jun 6, 2009 at 8:57 AM, Drew Wilson <atwilson at google.com> wrote:
> I can't seem to find any documentation as to what the expected behavior of
> Mutex.lock() is with regard to calling lock() recursively on the same
> Looking at the pthreads implementation, it appears that when we create the
> mutex we pass null as the attributes, which gives us the default behavior
> (not re-entrant).
> The Windows implementation uses EnterCriticalSection which *is* re-entrant.
> I'm assuming that the pthreads implementation is the correct one (calling
> Mutex.lock() twice on the same mutex on a single thread should deadlock the
> thread) but I wanted to verify this since the implementations seem to vary.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev