Hey,<div><br></div><div>I'm trying to do some funky things with the FFI, and I'm clueless enough with C that I could use some help.</div><div><br></div><div>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 <a href="http://www.mail-archive.com/help-glpk@gnu.org/msg04021.html">here</a>.</div>
<div><br></div><div>I have no idea how to integrate this with FFI-style bindings. A single-threaded set of bindings that I've written is here: <a href="http://hackage.haskell.org/package/glpk-hs">http://hackage.haskell.org/package/glpk-hs</a> I'm trying to figure out how to integrate FFI bindings with pthreads, and yadda yadda, and I'm pretty clueless.</div>
<div><br></div><div>Any suggestions?</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br clear="all">Louis Wasserman<br><a href="mailto:wasserman.louis@gmail.com">wasserman.louis@gmail.com</a><br>
<a href="http://profiles.google.com/wasserman.louis">http://profiles.google.com/wasserman.louis</a><br>
</div>