[patch] break glib bindings by adding timeout_milliseconds

Daniel P. Berrange dan at berrange.com
Wed Mar 1 06:04:16 PST 2006

On Wed, Mar 01, 2006 at 01:50:23AM -0500, David Zeuthen wrote:
> On Wed, 2006-03-01 at 00:31 -0500, Havoc Pennington wrote:
> Also note that we'll be adding more methods in HAL in the future that
> potentially could easily take > 5 minutes to complete... such as methods
> for formatting hard disks (a side effect of this method call is that it
> will emit signals for progress, e.g. percentage complete for format
> etc.).

If it is going to emit progress signals, then what's the point in blocking
on the 'FormatDisk()' method call? You might as well just return immediately
and the client app can listen out for a 'completion' signal - which its going
to be listening for anyway to display progress. 

|=-            GPG key: http://www.berrange.com/~dan/gpgkey.txt       -=|
|=-       Perl modules: http://search.cpan.org/~danberr/              -=|
|=-           Projects: http://freshmeat.net/~danielpb/               -=|
|=-   berrange at redhat.com  -  Daniel Berrange  -  dan at berrange.com    -=|

More information about the dbus mailing list