emacs-devel
[Top][All Lists]
Advanced

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

Re: Reading D-Bus messages


From: Jan Djärv
Subject: Re: Reading D-Bus messages
Date: Fri, 24 Sep 2010 16:28:14 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8

2010-09-24 08:30, Michael Albinus skrev:
Eli Zaretskii<address@hidden>  writes:

I'd rather turn the table and ask why is the call to
xd_read_queued_messages made in gobble_input and not elsewhere?  Why
are we mixing input from D-Bus with keyboard input?  And why in
gobble_input?

D-Bus messages arrive asynchronously. xd_read_queued_messages() converts
them into special events, which are stored via kbd_buffer_store_event().

gobble_input() is used, because it is called at several places, for
instance in sit_for(), kbd_buffer_get_event(), get_input_pending(),
ns_select() - D-Bus messages shall be handled as soon as they arrive.


This is overkill.  Not even X messages are processed this fast.
Checking for D-bus messages when the input loop is entered should be enough.

        Jan D.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]