[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Locks and threads
From: |
Ludovic Courtès |
Subject: |
Re: Locks and threads |
Date: |
Wed, 11 Feb 2009 23:32:12 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Neil Jerram <address@hidden> writes:
> * libguile/async.c (scm_async_click): Don't leave Guile mode when
> locking async_mutex. We don't need to, because none of the code
> that has async_mutex locked can block, and doing so may lead to lock
> ordering problems between async_mutex and a thread's heap_mutex.
[...]
> - scm_i_scm_pthread_mutex_lock (&async_mutex);
> + scm_i_pthread_mutex_lock (&async_mutex);
This one was tricky. I took me a fair amount of M-. to grasp the
difference between these two variants.
Thanks!
Ludo'.