guile-devel
[Top][All Lists]
Advanced

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

Re: deadlock in scm_join_thread(_timed)


From: Ludovic Courtès
Subject: Re: deadlock in scm_join_thread(_timed)
Date: Sun, 24 May 2009 16:03:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux)

Hello!

Neil Jerram <address@hidden> writes:

> Thanks!  And here's the corresponding patch for master.  It's slightly
> different, because scm_join_thread_timed in master allows for the join
> attempt timing out and should return a special timeout value in that
> case.  Also I had to fix another problem, wait-condition-variable
> leaving asyncs blocked, before I could reproduce the
> scm_join_thread_timed issue in threads.test, so a patch for that
> problem is attached too.

Cool, thank you!

> +(define (asyncs-still-working?)
> +  (let ((a #f))
> +    (system-async-mark (lambda ()
> +                      (set! a #t)))
> +    (equal? '(a b c) '(a b c))
> +    a))

I guess `equal?' is here to trigger an `SCM_TICK', right?  Perhaps a
comment could be added to make it explicit?

Thanks,
Ludo'.




reply via email to

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