Re: Send scheme procedure as callback to foreign thread.

2022-10-13 Thread Zhu Zihao
Thanks for your help! I submit a more detailed report to https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58498. -- Retrieve my PGP public key: gpg --recv-keys B3EBC086AB0EBC0F45E0B4D433DB374BCEE4D9DC Zihao signature.asc Description: PGP signature

Re: Send scheme procedure as callback to foreign thread.

2022-10-12 Thread Ludovic Courtès
Hi, Zhu Zihao skribis: > In Guile FFI programming, we have procedure->pointer, which makes a > Scheme procedure a foreign callback. And foreign library call use this > callback. > > However, if this callback is called in a another foreign thread. The scheme > context is not properly setup, It ma

Send scheme procedure as callback to foreign thread.

2022-10-10 Thread Zhu Zihao
In Guile FFI programming, we have procedure->pointer, which makes a Scheme procedure a foreign callback. And foreign library call use this callback. However, if this callback is called in a another foreign thread. The scheme context is not properly setup, It may cause crash or UB. IIUC, the proce