diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2016-11-29 16:51:30 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-11-29 16:51:30 -0500 |
commit | 428e152be6bb0fd3867e41cee82a6d5968a11a26 (patch) | |
tree | e43d217c10c052704f872cd7e1df4d335c12d376 /rts/Threads.h | |
parent | 56d74515396c8b6360ba7898cbc4b68f0f1fb2ea (diff) | |
download | haskell-428e152be6bb0fd3867e41cee82a6d5968a11a26.tar.gz |
Use C99's bool
Test Plan: Validate on lots of platforms
Reviewers: erikd, simonmar, austin
Reviewed By: erikd, simonmar
Subscribers: michalt, thomie
Differential Revision: https://phabricator.haskell.org/D2699
Diffstat (limited to 'rts/Threads.h')
-rw-r--r-- | rts/Threads.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rts/Threads.h b/rts/Threads.h index 4588008e28..98792f4b71 100644 --- a/rts/Threads.h +++ b/rts/Threads.h @@ -14,7 +14,7 @@ #define END_BLOCKED_EXCEPTIONS_QUEUE ((MessageThrowTo*)END_TSO_QUEUE) StgTSO * unblockOne (Capability *cap, StgTSO *tso); -StgTSO * unblockOne_ (Capability *cap, StgTSO *tso, rtsBool allow_migrate); +StgTSO * unblockOne_ (Capability *cap, StgTSO *tso, bool allow_migrate); void checkBlockingQueues (Capability *cap, StgTSO *tso); void tryWakeupThread (Capability *cap, StgTSO *tso); @@ -32,8 +32,8 @@ void wakeupThreadOnCapability (Capability *cap, void updateThunk (Capability *cap, StgTSO *tso, StgClosure *thunk, StgClosure *val); -rtsBool removeThreadFromQueue (Capability *cap, StgTSO **queue, StgTSO *tso); -rtsBool removeThreadFromDeQueue (Capability *cap, StgTSO **head, StgTSO **tail, StgTSO *tso); +bool removeThreadFromQueue (Capability *cap, StgTSO **queue, StgTSO *tso); +bool removeThreadFromDeQueue (Capability *cap, StgTSO **head, StgTSO **tail, StgTSO *tso); StgBool isThreadBound (StgTSO* tso); @@ -41,7 +41,7 @@ StgBool isThreadBound (StgTSO* tso); void threadStackOverflow (Capability *cap, StgTSO *tso); W_ threadStackUnderflow (Capability *cap, StgTSO *tso); -rtsBool performTryPutMVar(Capability *cap, StgMVar *mvar, StgClosure *value); +bool performTryPutMVar(Capability *cap, StgMVar *mvar, StgClosure *value); #ifdef DEBUG void printThreadBlockage (StgTSO *tso); |