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
Glasgow Haskell Compiler
GHC
Commits
53057d6f
Commit
53057d6f
authored
Feb 04, 2002
by
sof
Browse files
[project @ 2002-02-04 20:10:47 by sof]
moved {ACQUIRE,RELEASE}_LOCK to OSThreads.h
parent
5316d543
Changes
1
Show whitespace changes
Inline
Side-by-side
ghc/includes/SMP.h
View file @
53057d6f
/* ----------------------------------------------------------------------------
* $Id: SMP.h,v 1.
3
200
1
/02/0
9 13:09:17 simonmar
Exp $
* $Id: SMP.h,v 1.
4
200
2
/02/0
4 20:10:47 sof
Exp $
*
* (c) The GHC Team, 1999
*
...
...
@@ -74,15 +74,10 @@
#define LOCK_THUNK(__info) \
CMPXCHG(R1.cl->header.info, __info, &stg_WHITEHOLE_info);
#define ACQUIRE_LOCK(mutex) pthread_mutex_lock(mutex);
#define RELEASE_LOCK(mutex) pthread_mutex_unlock(mutex);
#else
/* !SMP */
#define LOCK_CLOSURE(c)
/* nothing */
#define LOCK_THUNK(__info)
/* nothing */
#define ACQUIRE_LOCK(mutex)
/* nothing */
#define RELEASE_LOCK(mutex)
/* nothing */
#endif
/* SMP */
...
...
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