Re: Multiple C threads -> one unthreaded GHC RTS

2017-09-28 Thread Brandon Allbery
On Thu, Sep 28, 2017 at 4:57 PM, Albert Y. C. Lai wrote: > Suppose I have a C program with multiple C threads calling Haskell > functions, maybe the same Haskell function too, and the GHC RTS used is the > unthreaded one. What will go wrong? > > I ask because Cabal/cabal-install has recently adde

Multiple C threads -> one unthreaded GHC RTS

2017-09-28 Thread Albert Y. C. Lai
Suppose I have a C program with multiple C threads calling Haskell functions, maybe the same Haskell function too, and the GHC RTS used is the unthreaded one. What will go wrong? I ask because Cabal/cabal-install has recently added building of export-to-C shared libraries, i.e., the "foreign-l