From eb9cf24ca79329fc83d5803cc5933b109fcc9f04 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 30 May 1999 01:39:48 +0000 Subject: 1999-05-29 Roland McGrath * cthreads.h (mutex_clear): Change again, to call mutex_init. --- libthreads/cthreads.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libthreads/cthreads.h') 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 + * + * * 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 */ -- cgit v1.2.3