Merge branch 'gcc-shadow' into refs/top-bases/gcc-branch
This commit is contained in:
commit
22f122e505
|
@ -142,12 +142,12 @@ txg_thread_exit(tx_state_t *tx, callb_cpr_t *cpr, kthread_t **tpp)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
txg_thread_wait(tx_state_t *tx, callb_cpr_t *cpr, kcondvar_t *cv, uint64_t time)
|
txg_thread_wait(tx_state_t *tx, callb_cpr_t *cpr, kcondvar_t *cv, uint64_t wt)
|
||||||
{
|
{
|
||||||
CALLB_CPR_SAFE_BEGIN(cpr);
|
CALLB_CPR_SAFE_BEGIN(cpr);
|
||||||
|
|
||||||
if (time)
|
if (wt)
|
||||||
(void) cv_timedwait(cv, &tx->tx_sync_lock, lbolt + time);
|
(void) cv_timedwait(cv, &tx->tx_sync_lock, lbolt + wt);
|
||||||
else
|
else
|
||||||
cv_wait(cv, &tx->tx_sync_lock);
|
cv_wait(cv, &tx->tx_sync_lock);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue