on develop help sign in
Earlier 'base' versions for CrossImpl and earlier RTS compatability for checkCapability.
commit240932e52185d196263f01da38511f6e05c0d959 authordavean <davean@xkcd.com> dateWed 17 Oct 2018, 16:25 (8 years ago) parent9813f90
2 files changed+7−6
bench-cbits/checkCapability.c+6−6 test/Reflex/Test/CrossImpl.hs+1
bench-cbits/checkCapability.c+6−6
@@ -42,7 +42,7 @@ typedef struct Task_ {
4242 // or just continue immediately. It's a workaround for the fact
4343 // that signalling a condition variable doesn't do anything if the
4444 // thread is already running, but we want it to be sticky.
45− bool wakeup;
45+ HsBool wakeup;
4646#endif
4747
4848 // This points to the Capability that the Task "belongs" to. If
@@ -65,11 +65,11 @@ typedef struct Task_ {
6565 uint32_t n_spare_incalls;
6666 struct InCall_ *spare_incalls;
6767
68− bool worker; // == rtsTrue if this is a worker Task
69− bool stopped; // this task has stopped or exited Haskell
68+ HsBool worker; // == rtsTrue if this is a worker Task
69+ HsBool stopped; // this task has stopped or exited Haskell
7070
7171 // So that we can detect when a finalizer illegally calls back into Haskell
72− bool running_finalizers;
72+ HsBool running_finalizers;
7373
7474 // Links tasks on the returning_tasks queue of a Capability, and
7575 // on spare_workers.
@@ -98,12 +98,12 @@ struct Capability_ {
9898
9999 // true if this Capability is running Haskell code, used for
100100 // catching unsafe call-ins.
101− bool in_haskell;
101+ HsBool in_haskell;
102102
103103 // Has there been any activity on this Capability since the last GC?
104104 uint32_t idle;
105105
106− bool disabled;
106+ HsBool disabled;
107107
108108 // The run queue. The Task owning this Capability has exclusive
109109 // access to its run queue, so can wake up threads without
test/Reflex/Test/CrossImpl.hs+1
@@ -30,6 +30,7 @@ import Data.Foldable
3030import Data.Map.Strict (Map)
3131import qualified Data.Map.Strict as Map
3232import qualified Data.Set as Set
33+import Data.Monoid
3334import Data.Traversable
3435import System.Exit
3536import System.Mem