Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use message dispatching instead of busy-waiting
As cow-notify has no special requirements for a mainloop we can avoid doing sleep cycles. This is not only saving a few cpu cycles, but gives us also 'instant' notifications instead of ~1 sec delays. . The code also passes the used DBusConnection around instead of storing it in a global variable - that's again more a taste than a really needed change.
- Loading branch information
Showing
3 changed files
with
22 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters