Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
583be3fa
Commit
583be3fa
authored
Jan 27, 2003
by
wolfgang
Browse files
[project @ 2003-01-27 23:23:30 by wolfgang]
Add #ifdef around an assertion that only holds for the threaded RTS.
parent
773d8c85
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/rts/Capability.c
View file @
583be3fa
...
...
@@ -137,7 +137,9 @@ static Capability *returning_capabilities;
*/
void
grabCapability
(
Capability
**
cap
)
{
#ifdef RTS_SUPPORTS_THREADS
ASSERT
(
rts_n_free_capabilities
>
0
);
#endif
#if !defined(SMP)
rts_n_free_capabilities
=
0
;
*
cap
=
&
MainCapability
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment