stopping callouts

Artis Caune Artis.Caune at latnet.lv
Mon Jun 4 09:39:36 UTC 2007


Sam Leffler wrote:
> 
> If you use callout_init_mtx then use callout_stop while holding my_mtx; 
> if the callout is blocked waiting for my_mtx the request will be discarded.
> 
> callout_drain should not be called while holding my_mtx because it can 
> sleep.
> 


Thanks,
than I will use:


MTX_LOCK;
...
callout_stop();
MTX_UNLOCK;


More information about the freebsd-hackers mailing list