[DGD] A call_out problem
Felix A. Croes
felix at dworkin.nl
Sun Apr 14 15:53:50 CEST 2002
Aki J Kotala <kotala at cs.Helsinki.FI> wrote:
> Hello,
>
> Call_out handles are not working quite orderly for me. Here's a program
> that demonstrates what I'm trying.
>
> The expected result is that call_fun1() gets called every five seconds,
> and call_fun2() once per second. What actually happens is that after
> the first five seconds, only call_fun1() is ever called. However if
> I #define WAIT as 0, it works fine. It looks as though the two call_outs
> for some reason get a duplicate handle.
The problem is your use of remove_call_out(), which in call_fun1() can
remove the callout for call_fun2() that was just started.
I see no need for remove_call_out() in the code that you posted, at all :)
Regards,
Dworkin
_________________________________________________________________
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list