[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MIT-Scheme-devel] recursive with-thread-mutex-locked
From: |
Taylor R Campbell |
Subject: |
Re: [MIT-Scheme-devel] recursive with-thread-mutex-locked |
Date: |
Sun, 16 Nov 2014 18:27:56 +0000 |
User-agent: |
IMAIL/1.21; Edwin/3.116; MIT-Scheme/9.1.99 |
Date: Sun, 16 Nov 2014 11:19:51 -0700
From: Matt Birkholz <address@hidden>
> From: Taylor R Campbell <address@hidden>
> Date: Thu, 13 Nov 2014 22:41:47 +0000
>
> Does anyone rely on recursion in WITH-THREAD-MUTEX-LOCKED? I would
> like to prohibit recursive thread mutex locks altogether,
Sounds good to me.
OK.
> and prohibit the use of THREAD-MUTEX-OWNER except as a diagnostic
> and debugging feature.
How? If it is not exported to (), I will need to type
(define thread-mutex-owner
(access thread-mutex-owner (->environment '(runtime thread))))
in my debugging session?
I meant by a sternly-worded message in the documentation and/or
comments.
Can we "fix" ACCESS to do the coercion? I'd rather type
(define thread-mutex-owner (access thread-mutex-owner '(runtime thread)))
I'd rather nix ACCESS and redo the way environments work, but I'm not
volunteering for that.