mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 23:50:27 +00:00
unbreak libthr binary compatibility.
Reported by: kris
This commit is contained in:
parent
de13c80e9b
commit
22e556d59c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140858
|
@ -81,7 +81,7 @@ umtx_lock(struct umtx *umtx, long id)
|
|||
{
|
||||
if (atomic_cmpset_acq_ptr(&umtx->u_owner, (void *)UMTX_UNOWNED,
|
||||
(void *)id) == 0)
|
||||
if (_umtx_op(umtx, UMTX_OP_LOCK, id, 0, 0) == -1)
|
||||
if (_umtx_lock(umtx) == -1)
|
||||
return (errno);
|
||||
return (0);
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ umtx_unlock(struct umtx *umtx, long id)
|
|||
{
|
||||
if (atomic_cmpset_rel_ptr(&umtx->u_owner, (void *)id,
|
||||
(void *)UMTX_UNOWNED) == 0)
|
||||
if (_umtx_op(umtx, UMTX_OP_UNLOCK, id, 0, 0) == -1)
|
||||
if (_umtx_unlock(umtx) == -1)
|
||||
return (errno);
|
||||
return (0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue