Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Jun 2007 12:39:32 +0300
From:      Artis Caune <Artis.Caune@latnet.lv>
To:        hackers@freebsd.org
Subject:   Re: stopping callouts
Message-ID:  <4663DDD4.1020207@latnet.lv>
In-Reply-To: <46604877.7030007@errno.com>
References:  <465FF29B.3010307@latnet.lv> <46604877.7030007@errno.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4663DDD4.1020207>