unbreak libthr binary compatibility.

Reported by: kris
This commit is contained in:
David Xu 2005-01-26 12:07:06 +00:00
parent de13c80e9b
commit 22e556d59c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140858

View file

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