[Haskell-cafe] FFI and callbacks

Bayley, Alistair Alistair_Bayley at ldn.invesco.com
Wed Jul 20 10:19:10 EDT 2005


> From: John Goerzen [mailto:jgoerzen at complete.org] 
> 
> How would I make this sort of system play nice with Haskell threads?
> 
> Also, the brief FFI docs that I've found don't really explain 
> callbacks
> in FFI very well to me.  Are there any other resources on 
> this anywhere?


This might help:
http://www.haskell.org/ghc/docs/latest/html/libraries/base/Foreign.Ptr.html#
t%3AFunPtr

...and I can also show you some code which uses a simple callback.

Or are you past that stage now, and more worried about interaction of
callbacks and threads?

Alistair.

-----------------------------------------
*****************************************************************
Confidentiality Note: The information contained in this   message, and any
attachments, may contain confidential   and/or privileged material. It is
intended solely for the   person(s) or entity to which it is addressed. Any
review,   retransmission, dissemination, or taking of any action in
reliance upon this information by persons or entities other   than the
intended recipient(s) is prohibited. If you received  this in error, please
contact the sender and delete the   material from any computer.
*****************************************************************



More information about the Haskell-Cafe mailing list