Hey,<div><br></div><div>I&#39;m trying to do some funky things with the FFI, and I&#39;m clueless enough with C that I could use some help.</div><div><br></div><div>In particular, I&#39;m trying to bind to the glpk library in a multithreaded style.  It&#39;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&#39;ve written is here: <a href="http://hackage.haskell.org/package/glpk-hs">http://hackage.haskell.org/package/glpk-hs</a>  I&#39;m trying to figure out how to integrate FFI bindings with pthreads, and yadda yadda, and I&#39;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>