mit-scheme-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MIT-Scheme-devel] hash-table/modify!


From: Joe Marshall
Subject: Re: [MIT-Scheme-devel] hash-table/modify!
Date: Sat, 19 Dec 2009 23:48:12 -0800

You need to avoid a race between two processes trying to modify
the cell at the same time.

On Sat, Dec 19, 2009 at 10:49 PM, Taylor R Campbell <address@hidden> wrote:
> (HASH-TABLE/MODIFY! <hash-table> <key> <modifier> [<default>]) may
> call <modifier> with interrupts blocked, or with the same mask as in
> the caller of HASH-TABLE/MODIFY!.  I can't think of any reason to
> block interrupts during the call to <modifier>, and it seems confusing
> to me to call it in one of two very different states; does it seem
> sensible to pull the call to it outside WITH-TABLE-LOCKED! in the body
> of MAKE-METHOD:MODIFY!'s lambda in hashtb.scm?  And if we made that
> change, would it b necessary to lock the table at all (i.e., to block
> interrupts) for the single write that SET-ENTRY-DATUM! incurs?
>
>
> _______________________________________________
> MIT-Scheme-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/mit-scheme-devel
>



-- 
~jrm




reply via email to

[Prev in Thread] Current Thread [Next in Thread]