[Haskell-cafe] Halp: wacky FFI problems

Louis Wasserman wasserman.louis at gmail.com
Mon Apr 26 14:06:01 EDT 2010


Hey,

I'm trying to do some funky things with the FFI, and I'm clueless enough
with C that I could use some help.

In particular, I'm trying to bind to the glpk library in a multithreaded
style.  It's not normally thread-safe, but somebody suggested how to make it
safe here <http://www.mail-archive.com/help-glpk@gnu.org/msg04021.html>.

I have no idea how to integrate this with FFI-style bindings.  A
single-threaded set of bindings that I've written is here:
http://hackage.haskell.org/package/glpk-hs  I'm trying to figure out how to
integrate FFI bindings with pthreads, and yadda yadda, and I'm pretty
clueless.

Any suggestions?

Louis Wasserman
wasserman.louis at gmail.com
http://profiles.google.com/wasserman.louis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100426/1f79e921/attachment.html


More information about the Haskell-Cafe mailing list