[m-rev.] for review: avoid a potential deadlock with io.update_globals/3

Peter Wang wangp at students.cs.mu.oz.au
Thu Aug 31 13:15:11 AEST 2006


On 2006-08-30, Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
> 
> Estimated hours taken: 3
> Branches: main
> 
> Avoid a potential deadlock with the recently added library predicate
> io.update_globals/3.

It looks fine.  What would be the problems with changing globals from
di/uo modes to plain in/out modes?  I notice there is an XXX related to
this in io.m, and it'd only be worse if multiple threads are
destructively updating a global data structure.

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