[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Chicken callbacks
From: |
Christian Kellermann |
Subject: |
Re: [Chicken-users] Chicken callbacks |
Date: |
Wed, 03 Jun 2015 09:25:50 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
chi <address@hidden> writes:
> If you use a C library that requires callbacks, like libuv for
> instance, is it possible to write a procedure in chicken that will be
> guaranteed to return, as the C library requires? Like, by avoiding
> thread switching or call/cc or something?
Apart from using define-external as mentioned by Ivan you might
encounter another problem if the callbacks are being called from another
native thread. In this case you will need a different approach and
should be using the concurrent-native-callbacks egg.
Kind regards,
Christian
--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.