Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
66cfe3ce
Commit
66cfe3ce
authored
Nov 25, 2005
by
simonmar
Browse files
[project @ 2005-11-25 13:06:25 by simonmar]
define wb() and xchg() for non-SMP versions of the RTS
parent
062c0fab
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/includes/SMP.h
View file @
66cfe3ce
...
...
@@ -113,6 +113,18 @@ unlockClosure(StgClosure *p, StgInfoTable *info)
#endif
}
#endif
/* SMP */
#else
/* !SMP */
#define wb()
/* nothing */
INLINE_HEADER
StgWord
xchg
(
StgPtr
p
,
StgWord
w
)
{
StgWord
old
=
*
p
;
*
p
=
w
;
return
old
;
}
#endif
/* !SMP */
#endif
/* SMP_H */
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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