Thanks for your answer. I'll try your solution with condition variables
and I'll let you know about the results. What I really want to do is
quite simple: avoid wakeup_before_sleep conditions.
--
Damien Bergamini
| Really, you want to be using condition variables. Use a mutex
| to pr
ot *really* released if it recurses.
Thanks,
Damien Bergamini
void foo_intr(void *arg)
{
struct foo_softc *sc = arg;
mtx_lock(&sc->mtx);
...
wakeup(sc);
...
mtx_unlock(&sc->mtx);
}
void foo_f(struct foo_softc *sc)
{
mtx_lock(&sc
2 matches
Mail list logo