msleep(9) and recursed mutex
Damien Bergamini
damien.bergamini at free.fr
Mon Oct 11 09:57:01 PDT 2004
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 protect your data and use cv_{timed}wait{_sig}() to sleep.
| When the interrupt occurs, you use cv_signal() or cv_broadcast()
| to wake up any waiters.
|
| --
| DE
More information about the freebsd-hackers
mailing list