Threaded callbacks with FFI

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Threaded callbacks with FFI

Annick
Hi,

I am calling C from pharo with a callback,  and it seems the callback is called in another thread.
I can’t wrap the block in a process, because the return will be wrong, how can I do ???

Annick
Reply | Threaded
Open this post in threaded view
|

Re: Threaded callbacks with FFI

philippeback


Le 25 sept. 2014 11:32, "Annick Fron" <[hidden email]> a écrit :
>
> Hi,
>
> I am calling C from pharo with a callback,  and it seems the callback is called in another thread.
> I can’t wrap the block in a process, because the return will be wrong, how can I do ???
>
Can you send us sample code ?
> Annick
>

Reply | Threaded
Open this post in threaded view
|

Re: Threaded callbacks with FFI

Annick
OK I try do do that.

Le 25 sept. 2014 à 12:18, [hidden email] a écrit :


Le 25 sept. 2014 11:32, "Annick Fron" <[hidden email]> a écrit :
>
> Hi,
>
> I am calling C from pharo with a callback,  and it seems the callback is called in another thread.
> I can’t wrap the block in a process, because the return will be wrong, how can I do ???
>
Can you send us sample code ?
> Annick
>