From 92b48f5fe8621b830802e7ff20b79c5ad485d70a Mon Sep 17 00:00:00 2001 From: "hp.com!davidm" Date: Mon, 24 Nov 2003 21:37:22 +0000 Subject: [PATCH] (sos_alloc): cmpxchg_ptr() now returns a boolean value (TRUE on success). (Logical change 1.123) --- src/mempool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mempool.c b/src/mempool.c index bc1a6587..8e421d5a 100644 --- a/src/mempool.c +++ b/src/mempool.c @@ -63,7 +63,7 @@ sos_alloc (size_t size) abort (); u.cp = sos_memp; } - while (cmpxchg_ptr (&u.lp, old_mem, mem) != old_mem); + while (!cmpxchg_ptr (&u.lp, old_mem, mem)); #else static pthread_mutex_t sos_lock = PTHREAD_MUTEX_INITIALIZER; sigset_t saved_sigmask;