mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-23 12:37:55 +08:00
TIMEOUT(9): Support callout_drain()
This commit is contained in:
parent
a9e26f5d5b
commit
e65783f249
@ -825,8 +825,16 @@ again:
|
|||||||
PICKUP_GIANT();
|
PICKUP_GIANT();
|
||||||
CC_LOCK(cc);
|
CC_LOCK(cc);
|
||||||
#else /* __rtems__ */
|
#else /* __rtems__ */
|
||||||
BSD_ASSERT(0);
|
/*
|
||||||
#endif /* __rtems__ */
|
* On RTEMS the LOR problem above does not
|
||||||
|
* exist since here we do not use
|
||||||
|
* sleepq_set_timeout() and instead use the
|
||||||
|
* RTEMS watchdog.
|
||||||
|
*/
|
||||||
|
cc->cc_waiting = 1;
|
||||||
|
msleep_spin(&cc->cc_waiting, &cc->cc_lock,
|
||||||
|
"codrain", 0);
|
||||||
|
#endif /* __rtems__ */
|
||||||
}
|
}
|
||||||
} else if (use_lock && !cc->cc_cancel) {
|
} else if (use_lock && !cc->cc_cancel) {
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user