summaryrefslogtreecommitdiff
path: root/libthreads
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-04-04 21:06:16 +0000
committerRoland McGrath <roland@gnu.org>1995-04-04 21:06:16 +0000
commit1b33601459649bed37af52615e06ae9a328a4987 (patch)
tree3ff85ae47d37c257bc0a14c38c11bbfb072a3566 /libthreads
parent5f54169275587e80c70ca622780ddb239ab8a3c8 (diff)
(mutex_lock, mutex_unlock): Use __ names for *_solid.
Diffstat (limited to 'libthreads')
-rw-r--r--libthreads/cthreads.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/libthreads/cthreads.h b/libthreads/cthreads.h
index a7b09a1b..35377ace 100644
--- a/libthreads/cthreads.h
+++ b/libthreads/cthreads.h
@@ -25,7 +25,10 @@
*/
/*
* HISTORY
- * $Log: cthreads.h,v $
+ * $Log: cthreads.h,v $
+ * Revision 1.4 1994/05/05 10:52:06 roland
+ * entered into RCS
+ *
* Revision 2.12 92/05/22 18:38:36 jfriedl
* From Mike Kupfer <kupfer@sprite.Berkeley.EDU>:
* Add declaration for cthread_wire().
@@ -340,24 +343,21 @@ typedef struct mutex {
#define mutex_clear(m) /* nop */???
#define mutex_free(m) free((any_t) (m))
-extern void
-mutex_lock_solid C_ARG_DECLS((mutex_t m)); /* blocking */
-
-extern void
-mutex_unlock_solid C_ARG_DECLS((mutex_t m));
+extern void __mutex_lock_solid (void *mutex); /* blocking -- roland@gnu */
+extern void __mutex_unlock_solid (void *mutex); /* roland@gnu */
#define mutex_try_lock(m) spin_try_lock(&(m)->held)
#define mutex_lock(m) \
MACRO_BEGIN \
if (!spin_try_lock(&(m)->held)) { \
- mutex_lock_solid(m); \
+ __mutex_lock_solid(m); \
} \
MACRO_END
#define mutex_unlock(m) \
MACRO_BEGIN \
if (spin_unlock(&(m)->held), \
cthread_queue_head(&(m)->queue, int) != 0) { \
- mutex_unlock_solid(m); \
+ __mutex_unlock_solid(m); \
} \
MACRO_END