Repository navigation
Conversation
Collaborator
|
Thank you! The code of this library now lives in the Nucleus repository ( |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Idle tray loops currently wake about 20 times per second on Windows and once per second on Linux. Windows now waits with MsgWaitForMultipleObjectsEx and receives PostThreadMessage wakeups for queued updates and shutdown. Its bounded startup position retries remain. Linux uses poll with sd-bus readiness and deadlines, plus a nonblocking eventfd for updates and shutdown. Menu and icon updates stay on their existing threads, and a terminal Windows quit exits the loop.
The Linux native build, JVM JAR, JVM tests and ktlintCheck passed. A private D-Bus check verified zero idle wakeups over 2.2 seconds, update wakeups, icon/menu changes, callbacks and shutdown; the original code woke twice in the same interval. The existing 200,000-round concurrency test passed. The Windows JNI bridge cross-compiled with MinGW, but the full Windows DLL and runtime behavior were not verified. Desktop tray behavior on GNOME/KDE was not tested.