diff options
author | Michael I. Bushnell <mib@gnu.org> | 1993-03-17 19:48:28 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1993-03-17 19:48:28 +0000 |
commit | a2e9f0c7fef95bee72c4447b6230c3b7d8c35909 (patch) | |
tree | cbd2a5dabe0e843ed110fac60bfb99f75c60ea9d | |
parent | d435a299fc52563551df836cedfa528c71627011 (diff) |
Formerly cthreads.h.~2~
-rw-r--r-- | libthreads/cthreads.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 <machine/cthreads.h> #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. |