guile-devel
[Top][All Lists]
Advanced

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

Re: thread safe functions


From: Andy Wingo
Subject: Re: thread safe functions
Date: Mon, 23 May 2011 22:38:36 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

On Tue 15 Feb 2011 18:18, Ken Raeburn <address@hidden> writes:

> On Feb 10, 2011, at 17:19, Andy Wingo wrote:
>>> procproc.c: There's a mutex to protect overrides, but it looks like
>>> set-procedure-property! doesn't use it correctly; it should look more
>>> like set-object-property! does.
>> 
>> I'm going to punt on this one, since it cannot access the hash table
> in
>> an inconsistent state, and I don't care enough about what happens when
>> multiple threads start changing the same procedure property (a fairly
>> legacy interface) at once.  Furthermore there is always (assq-set!
>> (procedure-properties foo) 'bar) to contend with...
>
> It doesn't need to be the same property; I think different threads
> setting different new properties on a procedure in parallel may lose.

Indeed.  Fixed.

Andy
-- 
http://wingolog.org/



reply via email to

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