Thanks a lot, Erik.  That was definitely my bad: for some reason I
thought that Init methods would run on the right thread (and I used
Run instead of Start which was a bad idea as well).

I hope that writes to statics would be visible to other threads after
Locker/Unlocker ping-pong.

Just for my education, do we do anything for that or just hope it will work?

yours,
anton.

On Tue, May 4, 2010 at 11:31 PM,  <[email protected]> wrote:
> New version of the threaded test LGTM.
>
> You can't in general unlock a mutex from a different thread from the one it
> was
> locked in.  That would defeat deadlock detection.  Semaphores don't have
> that
> restriction and for the same reason you can't normally detect a semaphore
> deadlock.   At least this is how I see it and Wikipedia seems to agree.
>
> http://codereview.chromium.org/1780001/show
>

-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to