[patch] asynchronous callouts

Joe Shaw joe at ximian.com
Mon Apr 26 10:38:46 PDT 2004


On Sun, 2004-04-25 at 20:44 +0200, David Zeuthen wrote:

> I actually think it will work fine in every case. 
> 
> When hald starts up all the devices in the chain above is visited and in
> the tdl - they start by waiting for the parent; when the parent is there
> they execute the callouts c0,c1,.. and when the callouts are complete
> they are in the gdl. Let's assume it takes 2 secs to complete the
> callouts (way to high, but..)
> 
> Initially to start the process, pci-device just executes the callouts
> (it doesn't wait for a parent since the sysfs path indicates that there
> is no parent) and is then in the gdl after 2 seconds. Then usb root got
> a parent, executes the callouts and after two secs is put in to the gdl.
> And so on... Wouldn't this work?

You're right, and my patch seems to work fine with the changes you've
made.  Thank you.

Here's the patch.  It's pretty big and hairy, so I'd appreciate a pair
of eyes on it before I commit it.  Unfortunately it uglifies my
beautiful callout code. ;)

Joe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hald-callouts-before-gdl.patch
Type: text/x-diff
Size: 17549 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20040426/7c42733e/hald-callouts-before-gdl.bin
-------------- next part --------------
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal


More information about the Hal mailing list