Re: How to stop the thread from yielding per 20ms?

2015-07-04 Thread Zhen Zhang
6:25 AM, Zhen Zhang wrote: Hi, I am trying to stop the GHC thread scheduler from atomically do round-robin scheduling. It might be strange that I am asking for that, in fact, my intention is to implement the “Lightweight Concurrency” on top of current RTS system. I am trying to use `GHC.Event

How to stop the thread from yielding per 20ms?

2015-07-04 Thread Zhen Zhang
Hi, I am trying to stop the GHC thread scheduler from atomically do round-robin scheduling. It might be strange that I am asking for that, in fact, my intention is to implement the “Lightweight Concurrency” on top of current RTS system. I am trying to use `GHC.Event`’s timeout mechanism to inte

Problem about `DerivedConstants.h` and `tmp.c` in `includes/dist-derivedconstants/header`, GHC 7.8.3

2015-06-14 Thread Zhen Zhang
Hi everyone, I am having trouble porting some 6.8.2 GHC code to 7.8.3 GHC. The main trouble I met is that, in 6.8.2, there is a includes/mkDerivedConstants.c and some constants about RTS are declared here. While in 7.8.3, there is only a similar `includes/dist-derivedconstants/header` directory