Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a fairness supervisor #20

Merged
merged 1 commit into from
Aug 23, 2023
Merged

Introduce a fairness supervisor #20

merged 1 commit into from
Aug 23, 2023

Conversation

robotlolita
Copy link
Contributor

This patch introduces a "fairness supervisor". Right now this is pretty straight-forward, and just checks that a cartridge is not abusing modal dialogs to prevent users from using the device (since modal dialogs always stack on top of the current foreground screen). This means that from now on cartridges will only be able to show a modal dialog if they are the screen on foreground and if they are not showing another modal dialog (it shouldn't be possible with the first restriction in any case).

There may be more fairness quotas applied later, particularly once Kate supports multiple processes, as there we'd like to ensure that no cartridge hogs the entire device to itself.

@robotlolita robotlolita added enhancement New feature or request c:kernel Changes to the Kate emulator kernel (requires strict audits!) labels Aug 23, 2023
@robotlolita robotlolita merged commit 5b26f33 into main Aug 23, 2023
1 check passed
@robotlolita robotlolita deleted the patch/fairness branch August 23, 2023 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:kernel Changes to the Kate emulator kernel (requires strict audits!) enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant