On Monday 04 June 2007 05:39:32 am Artis Caune wrote:
> 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_
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;
...
c
Artis Caune wrote:
Hello FreeBSD-hackers!
what is the right way to stop callout which is initialized with mutex:
callout_init_mtx(&callout_function, &my_mtx, 0);
should I lock mutex before calling callout_drain() or not?
man page says: callout_drain() is identical to callout_stop() and
if th
On Friday 01 June 2007 12:19, Artis Caune wrote:
> Hello FreeBSD-hackers!
>
> what is the right way to stop callout which is initialized with mutex:
>callout_init_mtx(&callout_function, &my_mtx, 0);
>
> should I lock mutex before calling callout_drain() or not?
>
> man page says: callout_drain(
Hello FreeBSD-hackers!
what is the right way to stop callout which is initialized with mutex:
callout_init_mtx(&callout_function, &my_mtx, 0);
should I lock mutex before calling callout_drain() or not?
man page says: callout_drain() is identical to callout_stop() and
if the callout has an ass
5 matches
Mail list logo