mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-26 17:17:39 +01:00
(sos_alloc): cmpxchg_ptr() now returns a boolean value (TRUE on success).
(Logical change 1.123)
This commit is contained in:
parent
90e8393da3
commit
92b48f5fe8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue