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 _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"