[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guile + pthreads + reentrancy?
From: |
Mikael Djurfeldt |
Subject: |
Re: Guile + pthreads + reentrancy? |
Date: |
Tue, 24 Feb 2004 17:09:26 -0500 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
address@hidden writes:
> I did the message-queueing kludge. It works, although it is messy.
> But it's not reentrant. If I tell Guile's pthread to call
> scm_eval_string, which in turn calls a gsubr, and that gsubr spawns a
> new pthread which queues a call to scm_makfrom0str, we have a
> deadlock.
One thing you could do is to insert a conditional into the
queue_insert routine which checks whether the caller is the Guile
thread. If it is, you evaluate the form immediately instead of
queuing it up.
M
Re: Guile + pthreads + reentrancy?,
Mikael Djurfeldt <=