Re: msleep(9) and recursed mutex

2004-10-11 Thread Damien Bergamini
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

msleep(9) and recursed mutex

2004-10-11 Thread damien . bergamini
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