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.

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@gmail.com
http://profiles.google.com/wasserman.louis