Den 4. maj 2010 21.35 skrev Anton Muhin <[email protected]>:

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

Accessing the OS primitives beneath the mutexes should make statics visible
across threads as I understand it.


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