1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-22 23:47:39 +01:00

(sos_alloc): cmpxchg_ptr() now returns a boolean value (TRUE on success).

(Logical change 1.123)
This commit is contained in:
hp.com!davidm 2003-11-24 21:37:22 +00:00
parent 90e8393da3
commit 92b48f5fe8

View file

@ -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;