diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2016-05-02 06:37:14 +1000 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2016-05-05 08:29:27 +1000 |
commit | db9de7eb3e91820024f673bfdb6fb8064cfed20d (patch) | |
tree | 5e1c3ef0b6dee7f40fedbc118ba36cfe6ffdd1ee /rts/Threads.c | |
parent | ad4392c142696d5092533480a82ed65322e9d413 (diff) | |
download | haskell-db9de7eb3e91820024f673bfdb6fb8064cfed20d.tar.gz |
rts: Replace `nat` with `uint32_t`
The `nat` type was an alias for `unsigned int` with a comment saying
it was at least 32 bits. We keep the typedef in case client code is
using it but mark it as deprecated.
Test Plan: Validated on Linux, OS X and Windows
Reviewers: simonmar, austin, thomie, hvr, bgamari, hsyl20
Differential Revision: https://phabricator.haskell.org/D2166
Diffstat (limited to 'rts/Threads.c')
-rw-r--r-- | rts/Threads.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rts/Threads.c b/rts/Threads.c index bf30ab8eac..7317249e11 100644 --- a/rts/Threads.c +++ b/rts/Threads.c @@ -59,7 +59,7 @@ createThread(Capability *cap, W_ size) { StgTSO *tso; StgStack *stack; - nat stack_size; + uint32_t stack_size; /* sched_mutex is *not* required */ @@ -701,7 +701,7 @@ threadStackUnderflow (Capability *cap, StgTSO *tso) { StgStack *new_stack, *old_stack; StgUnderflowFrame *frame; - nat retvals; + uint32_t retvals; debugTraceCap(DEBUG_sched, cap, "stack underflow"); @@ -831,7 +831,7 @@ void printAllThreads(void) { StgTSO *t, *next; - nat i, g; + uint32_t i, g; Capability *cap; debugBelch("all threads:\n"); @@ -859,7 +859,7 @@ printAllThreads(void) void printThreadQueue(StgTSO *t) { - nat i = 0; + uint32_t i = 0; for (; t != END_TSO_QUEUE; t = t->_link) { printThreadStatus(t); i++; |