[Telepathy] telepathy-glib: *_run_* methods.
Murray Cumming
murrayc at murrayc.com
Tue Nov 18 02:08:07 PST 2008
It's been suggested that people should just never use the run functions
such as tp_cli_connection_run_request_handles(), because these are
really asynchronous operations.
http://telepathy.freedesktop.org/doc/telepathy-glib/telepathy-glib-connection.html#tp-cli-connection-run-request-handles
However, these functions won't block the main mainloop, right. For
instance, they won't prevent a GTK+ application from responding to
button clicks. Or am I wrong?
And if you supply a secondary mainloop then you can cancel a run
function if some user input makes that necessary.
So the use of these functions really doesn't seem that awful. If you
really know that there's nothing else you need to do while waiting,
other than responding to user input, then they seem like a sensible way
to simplify your code.
The only problem I can see is that the run functions make it difficult
to make various requests to telepathy in parallel, but how common is
that?
Opinions?
--
murrayc at murrayc.com
www.murrayc.com
www.openismus.com
More information about the Telepathy
mailing list