Foreign Function Interface (FFI)
Rafael Martinez Torres
rmartine at fdi.ucm.es
Fri Nov 28 12:16:59 EST 2003
HI:
Reading Haskell 98 FFI report, one question arised:
Imported and declared a foreign function , via
foreign import ccall foo:: IO(CInt)
Is it guaranteed to be executed in atomic way ? I mean , should it
block the whole STG system ?
Idea: To implement a monitor , in a "external context" , and threads
around him to access it, bypassing the Mvar paramter-pass among them...
More information about the Glasgow-haskell-users
mailing list