[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH]: Critical section checked for incorrect thread.
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH]: Critical section checked for incorrect thread. |
Date: |
Sun, 14 Dec 2008 00:59:49 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) |
Hi Linas,
"Linas Vepstas" <address@hidden> writes:
> --- guile-1.8.6.orig/libguile/throw.c 2008-12-08 11:42:56.000000000 -0600
> +++ guile-1.8.6/libguile/throw.c 2008-12-13 17:28:27.000000000 -0600
> @@ -692,7 +692,7 @@ scm_ithrow (SCM key, SCM args, int noret
> SCM dynpair = SCM_UNDEFINED;
> SCM winds;
>
> - if (scm_i_critical_section_level)
> + if (SCM_I_CURRENT_THREAD->block_asyncs)
> {
> fprintf (stderr, "throw from within critical section.\n");
> abort ();
It seems to me that "throw from within critical section" means precisely
"throw when SCM_I_CRITICAL_SECTION_LEVEL is non-zero". I don't see what
asyncs have to do with that.
Thanks,
Ludo'.