Skip to content

Commit 240932e

Browse files
committed
Earlier 'base' versions for CrossImpl and earlier RTS compatability for checkCapability.
1 parent 9813f90 commit 240932e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

bench-cbits/checkCapability.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -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
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import Data.Foldable
3030
import Data.Map.Strict (Map)
3131
import qualified Data.Map.Strict as Map
3232
import qualified Data.Set as Set
33+
import Data.Monoid
3334
import Data.Traversable
3435
import System.Exit
3536
import System.Mem

0 commit comments

Comments
 (0)