Hi

Em 31/07/2009, às 05:41, Dario Freddi escreveu:

> Hi Gustavo,
>
> In data giovedì 30 luglio 2009 19:04:24, Gustavo Boiko ha scritto:
> : > Hi
>>
>> Thank you for notifying about that.
>>
>> Em 22/07/2009, às 09:24, Dario Freddi escreveu:
>>> Hello guys,
>>>
>>> I moved KIdleTime to kdelibs/kutils right now, and you told me to
>>> drop a line
>>> here when this would have happened. The code is completely
>>> multiplatform and
>>> it would be nice to have less code duplication around, so I would
>>> like to know
>>> if you're still interested in using it.
>>
>> I'll try to give it a shot in the next few days. Let's see what  
>> happens.
>>
>> Just one small suggestion: wouldn't it be better to assign an id to
>> each timeout added? I mean if two different parts of the code add a
>> 500ms timeout, and after some time one of them removes the timeout.
>> Will the code still notify the other 500ms timeout?
>
> The interval is already the ID. Actually, since the idle time is  
> always the
> same, setting 2 intervals in the very same moment will end up in  
> having a
> single 500ms interval, since both would fire at the very same time.

Yes, I know they will fire at the same time. But my concern is if one  
of the timers added ask for removing the interval, will the other  
still fire?
A refcount would probably do the job, but since there is a similar API  
for other timeout event, I thought it would be a good thing to keep it  
consistent.

Cheers

Boiko
_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to