[m-rev.] diff: fix early release of stm lock

Julien Fischer juliensf at csse.unimelb.edu.au
Fri Oct 30 17:01:55 AEDT 2009


On Fri, 30 Oct 2009, Peter Wang wrote:

> Julien looked at this.
>
> Branches: main
>
> runtime/mercury_stm.c:
>        In MR_STM_block_thread, on resuming execution, don't release the STM
>        lock until after removing the thread's condition variable from the
>        transaction log.

You actually mean transaction variable rather than log at the end there.
The condition vars are attached to the former since other threads
require access to them as well.

Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list