[interfacekit] Re: BLooper - PLEASE look at...

"Erik Jaesler" <erik@xxxxxxxxxxxxxx> wrote:
> When Adi and I were talking about this, I found myself wishing for 
> wait_for_multiple_objects() -- I think that's the first time I've 
> ever 
> really wanted a Windows API available on BeOS. =P  Just out of 
> curiousity, Axel, how much work do you think that will require in the 
> kernel?

It depends on how we are going to do it.
Windows has all objects in a global namespace, that is, you can do 
something like (in pseudo code :)):

objects[1] = port;
objects[2] = semaphore;
objects[3] = file;
wait_for_multiple_objects(objects);

The question is if we want to copy that behaviour - it's a very nice 
and clean approach, but of course, a global namespace would require a 
bigger maintenance overhead (not that much, though).
What we could currently do with not too much work (but still not R1, I 
think), would be something like:

wait_for_multiple_objects(PORT_TYPE, port, SEM_TYPE, semaphore, 
FILE_TYPE, file, NULL);

Dunno if that's so nice, because it also requires a bit ugliness in the 
kernel. But of course, it might be easier to do with the current 
architecture.
Anyway, I think this call is a must, and it will become reality in R2, 
perhaps in addition to native async I/O - we'll see :-)

Adios...
   Axel.


Other related posts: