From a2e9f0c7fef95bee72c4447b6230c3b7d8c35909 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 17 Mar 1993 19:48:28 +0000 Subject: Formerly cthreads.h.~2~ --- libthreads/cthreads.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libthreads/cthreads.h b/libthreads/cthreads.h index d5fbd401..fed57250 100644 --- a/libthreads/cthreads.h +++ b/libthreads/cthreads.h @@ -164,6 +164,9 @@ #ifndef _CTHREADS_ #define _CTHREADS_ 1 +/* MIB XXX */ +#define CTHREAD_DATA + #include #if c_plusplus || __STDC__ @@ -284,7 +287,7 @@ extern int spin_try_lock C_ARG_DECLS((spin_lock_t *p)); #endif -#define spin_lock(p) if (!spin_try_lock(p)) spin_lock_solid(p); else +#define spin_lock(p) ({if (!spin_try_lock(p)) spin_lock_solid(p);}) /* * Mutex objects. -- cgit v1.2.3