[interfacekit] Re: BLooper reusability
- From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
- To: interfacekit@xxxxxxxxxxxxx
- Date: Fri, 23 May 2003 19:32:22 +0200 CEST
"Adi Oanca" <e2joseph@xxxxxxxxxx> wrote:
> Our task=5Flooper() will be modified, to read with a timeout of 0 from
> BLooper's standard port and from other incoming sources. If no
> message is
> received, in order not to use our timeslice in vain, we will 'snooze'
> for a
> bit, making the kernel to reschedule our thread.
I see this as the biggest disadvantage - this is busy waiting, and I
certainly don't want to have this in a standard class like the BLooper.
I would rather wait with such an approach for
wait=5Ffor=5Fmultiple=5Fobjects() like function (which will be one thing we
want to have in R2), or have a second looper which gets the messages
from the other source and redirects it to the other one.
I don't know how BWindow does that, but busy polling is not an option
for the application kit's fundamental classes IMO.
Adios...
Axel.
- Follow-Ups:
- [interfacekit] Re: BLooper reusability
- From: Ingo Weinhold
- References:
- [interfacekit] BLooper reusability
- From: Adi Oanca
Other related posts:
- » [interfacekit] BLooper reusability
- » [interfacekit] Re: BLooper reusability
- » [interfacekit] Re: BLooper reusability
- » [interfacekit] Re: BLooper reusability
- [interfacekit] Re: BLooper reusability
- From: Ingo Weinhold
- [interfacekit] BLooper reusability
- From: Adi Oanca