Commit 66cfe3ce authored by simonmar's avatar 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
......@@ -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 */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment