Re: Doubts about GPeriodic



Hi,

On Thu, Oct 21, 2010 at 4:25 PM, Havoc Pennington <hp pobox com> wrote:
> If you think
> about something like the dbus main loop source, the dbus library
> doesn't know what the heck is going to be coming in, and you can't
> tune the main loop source depending on what kind of message it is.

Note that with GDBus the resulting GDBusMessage is actually being
built in a separate (and private) thread - so in practice there is
zero overhead in the GUI thread - in particular it doesn't depend on
what kind of message it is or how big the message is. The same is true
for most of libgio's file and networking primitives (e.g.
g_file_load_contents_async() will cause work to happen in a worker
thread etc.).

    David


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]