-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move ThreadAffinity into its own module
- Loading branch information
1 parent
30d26f4
commit cc554dd
Showing
4 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.envrc | ||
.ghc.environment.* | ||
.ghcid | ||
Session.vim | ||
dist-newstyle/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module Ki.Internal.ThreadAffinity | ||
( ThreadAffinity (..), | ||
) | ||
where | ||
|
||
-- | What, if anything, a thread is bound to. | ||
data ThreadAffinity | ||
= -- | Unbound. | ||
Unbound | ||
| -- | Bound to a capability. | ||
Capability Int | ||
| -- | Bound to an OS thread. | ||
OsThread | ||
deriving stock (Eq, Show) |