Skip to content

Commit

Permalink
Earlier 'base' versions for CrossImpl and earlier RTS compatability f…
Browse files Browse the repository at this point in the history
…or checkCapability.
  • Loading branch information
davean committed Oct 17, 2018
1 parent 9813f90 commit 240932e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bench-cbits/checkCapability.c
Expand Up @@ -42,7 +42,7 @@ typedef struct Task_ {
// or just continue immediately. It's a workaround for the fact
// that signalling a condition variable doesn't do anything if the
// thread is already running, but we want it to be sticky.
bool wakeup;
HsBool wakeup;
#endif

// This points to the Capability that the Task "belongs" to. If
Expand All @@ -65,11 +65,11 @@ typedef struct Task_ {
uint32_t n_spare_incalls;
struct InCall_ *spare_incalls;

bool worker; // == rtsTrue if this is a worker Task
bool stopped; // this task has stopped or exited Haskell
HsBool worker; // == rtsTrue if this is a worker Task
HsBool stopped; // this task has stopped or exited Haskell

// So that we can detect when a finalizer illegally calls back into Haskell
bool running_finalizers;
HsBool running_finalizers;

// Links tasks on the returning_tasks queue of a Capability, and
// on spare_workers.
Expand Down Expand Up @@ -98,12 +98,12 @@ struct Capability_ {

// true if this Capability is running Haskell code, used for
// catching unsafe call-ins.
bool in_haskell;
HsBool in_haskell;

// Has there been any activity on this Capability since the last GC?
uint32_t idle;

bool disabled;
HsBool disabled;

// The run queue. The Task owning this Capability has exclusive
// access to its run queue, so can wake up threads without
Expand Down
1 change: 1 addition & 0 deletions test/Reflex/Test/CrossImpl.hs
Expand Up @@ -30,6 +30,7 @@ import Data.Foldable
import Data.Map.Strict (Map)
import qualified Data.Map.Strict as Map
import qualified Data.Set as Set
import Data.Monoid
import Data.Traversable
import System.Exit
import System.Mem
Expand Down

0 comments on commit 240932e

Please sign in to comment.