summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-05-30 01:39:48 +0000
committerRoland McGrath <roland@gnu.org>1999-05-30 01:39:48 +0000
commiteb9cf24ca79329fc83d5803cc5933b109fcc9f04 (patch)
treeb2a58ef4b3c10e1e1cbfb9686cfe94d8b52cfedd
parentea2dae47af05d72e702176c3babcf379e459031b (diff)
1999-05-29 Roland McGrath <roland@baalperazim.frob.com>
* cthreads.h (mutex_clear): Change again, to call mutex_init.
-rw-r--r--libthreads/cthreads.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libthreads/cthreads.h b/libthreads/cthreads.h
index ec3ed70c..c8752e3c 100644
--- a/libthreads/cthreads.h
+++ b/libthreads/cthreads.h
@@ -26,6 +26,12 @@
/*
* HISTORY
* $Log: cthreads.h,v $
+ * Revision 1.13 1999/05/29 18:59:10 roland
+ * 1999-05-29 Roland McGrath <roland@baalperazim.frob.com>
+ *
+ * * cthreads.h (mutex_clear): Change from syntax error to no-op (with
+ * warning avoidance).
+ *
* Revision 1.12 1996/05/04 10:06:31 roland
* [lint] (NEVER): Spurious global variable removed.
* [!lint] (NEVER): Useless macro removed.
@@ -364,7 +370,7 @@ typedef struct mutex {
MACRO_END
#define mutex_set_name(m, x) ((m)->name = (x))
#define mutex_name(m) ((m)->name != 0 ? (m)->name : "?")
-#define mutex_clear(m) ((void) 0) /* nop */
+#define mutex_clear(m) mutex_init(m)
#define mutex_free(m) free((any_t) (m))
extern void __mutex_lock_solid (void *mutex); /* blocking -- roland@gnu */