[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] callbacks returning twice
From: |
Christian Kellermann |
Subject: |
Re: [Chicken-users] callbacks returning twice |
Date: |
Fri, 26 Jun 2015 09:39:08 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
"Jörg F. Wittenberger" <address@hidden> writes:
> Except that it crashes all the time. "callback returned twice"
>
> So what's the recipe to hit that problem?
Having your C library call callbacks outside of a foreign-safe-lambda
call. This might affect you if said library uses threads and passes on
the function pointer to your scheme callback.
The remedy for this is to use the concurrent-native-callbacks egg
which uses a dispatcher stub written in C.
HTH,
Christian
--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.