Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libthr/thread/thr_umtx.c
Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | for (;;) { | ||||
} | } | ||||
if (ret == ETIMEDOUT) | if (ret == ETIMEDOUT) | ||||
break; | break; | ||||
} | } | ||||
return (ret); | return (ret); | ||||
} | } | ||||
int | int | ||||
__thr_umutex_unlock(struct umutex *mtx, uint32_t id) | __thr_umutex_unlock(struct umutex *mtx) | ||||
{ | { | ||||
return (_umtx_op_err(mtx, UMTX_OP_MUTEX_UNLOCK, 0, 0, 0)); | return (_umtx_op_err(mtx, UMTX_OP_MUTEX_UNLOCK, 0, 0, 0)); | ||||
} | } | ||||
int | int | ||||
__thr_umutex_trylock(struct umutex *mtx) | __thr_umutex_trylock(struct umutex *mtx) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 195 Lines • Show Last 20 Lines |