On Wed, Apr 20, 2011 at 6:11 PM, Bas van Dijk <v.dijk....@gmail.com> wrote:
> I still need to add appropriate conditions for checking whether the
> program is using the threaded RTS. What is the recommended approach
> for this?
>
> I see GHC.Conc.IO uses a dynamic check:
>
> foreign import ccall unsafe "rtsSupportsBoundThreads" threaded :: Bool
>
> Is this also available to me as a library author?

I think there's a ticket for adding something along the lines of

    getSystemEventManager :: IO (Maybe EventManager)

If that returns Just em, you're in the threaded RTS and have an EventManager.

Johan

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to