mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-05 20:15:58 +00:00
f8933f1178
Currently DBusWatcher registers read and write watchers on the I/O thread unconditionally. Thus for read-only DBusWatch structures, the write watcher on the I/O thread generates a significant amount of CPU overhead by constantly reporting success via calls to OnFileCanWriteWithoutBlocking. This patch changes DBusWatcher to respect the status flags of supplied DBusWatch structures. It will only poll for read or write status if the DBus watch has the corresponding flag set. DBus keeps track of these flags and calls the toggle callback when it needs to wait on a certain DBusWatch. |
||
---|---|---|
.. | ||
app | ||
chromium | ||
dbus | ||
glue | ||
ipdl | ||
keystore | ||
netd | ||
nfc | ||
ril | ||
testshell | ||
unixsocket | ||
moz.build | ||
pull-chromium.py |