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/Schedule.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/Schedule.h')
-rw-r--r-- | rts/Schedule.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rts/Schedule.h b/rts/Schedule.h index a8d1fb8b76..1453af41ca 100644 --- a/rts/Schedule.h +++ b/rts/Schedule.h @@ -21,7 +21,7 @@ * Locks assumed : none */ void initScheduler (void); -void exitScheduler (rtsBool wait_foreign); +void exitScheduler (bool wait_foreign); void freeScheduler (void); void markScheduler (evac_fn evac, void *user); @@ -101,7 +101,7 @@ extern StgTSO *blocked_queue_hd, *blocked_queue_tl; extern StgTSO *sleeping_queue; #endif -extern rtsBool heap_overflow; +extern bool heap_overflow; #if defined(THREADED_RTS) extern Mutex sched_mutex; @@ -208,13 +208,13 @@ appendToBlockedQueue(StgTSO *tso) /* Check whether various thread queues are empty */ -INLINE_HEADER rtsBool +INLINE_HEADER bool emptyQueue (StgTSO *q) { return (q == END_TSO_QUEUE); } -INLINE_HEADER rtsBool +INLINE_HEADER bool emptyRunQueue(Capability *cap) { return cap->n_run_queue == 0; @@ -233,7 +233,7 @@ truncateRunQueue(Capability *cap) #define EMPTY_SLEEPING_QUEUE() (emptyQueue(sleeping_queue)) #endif -INLINE_HEADER rtsBool +INLINE_HEADER bool emptyThreadQueues(Capability *cap) { return emptyRunQueue(cap) |