[interfacekit] Re: BMessageRunner: negative interval
- From: "Ingo Weinhold" <bonefish@xxxxxxxxxxxxxxx>
- To: "Interface Kit" <interfacekit@xxxxxxxxxxxxx>
- Date: Tue, 08 Oct 2002 18:16:44 CEST (+0200)
> a question about behavioral compatibility. BMessageRunner can be
> initialized with a negative time interval. This is semantical
> nonsense,
> but it seems to cause the messages to be sent as fast as possible. I
> suspect that this is a bug caused by sloppy parameter checking, since
> supplying 0 for the interval is not allowed -- InitCheck() returns
> B_ERROR in that case.
>
> I tend to forbid all values <= 0. Are there objections?
>
> Oh I forgot to mention, that those negative numbers work well with
> small positive count parameters (the number specifying how many times
> the message shall be sent), but obviously the target's message port
> is
> flooded when count is -1 (unlimited number of repetitions).
Err, I guess, I sent my mail a bit early. I was wrong with my
suspicion, that the messages are sent with maximal speed. If the
supplied time interval is smaller than a minimal value (50000 if it
isn't machine dependent), then this minimal interval is used instead.
This is also the case for negative values. So if I copy this behavior,
I think, for consistency the handling should be the same for 0,
shouldn't it?
CU, Ingo
- Follow-Ups:
- [interfacekit] Re: BMessageRunner: negative interval
- From: Tyler Dauwalder
Other related posts:
- » [interfacekit] BMessageRunner: negative interval
- » [interfacekit] Re: BMessageRunner: negative interval
- » [interfacekit] Re: BMessageRunner: negative interval
- » [interfacekit] Re: BMessageRunner: negative interval
- [interfacekit] Re: BMessageRunner: negative interval
- From: Tyler Dauwalder