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

Implement auto invocation of deferred slots #17

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

MiKom
Copy link
Member

@MiKom MiKom commented Jul 9, 2024

Connection invocations are now evaluated automatically in the event loop. Any time an invocation is enqueued using the event loop's connection evaluator, the event loop is woken up.

This required a KDUtils-specific ConnectionEvaluator.

When given event loop is destroyed, it sets a reference in the evaluator to null. It's a defensive measure for the future to prevent misuse of lingering evaluators in case the user deletes the event loop first.

AbstractEventLoop::waitForEvents is not pure abstract anymore as it ensures evaluation of slot invocations.

Removed one copypasted comment in android event loop impl.

@MiKom MiKom requested review from mkrus and seanharmer July 9, 2024 16:59
@MiKom MiKom force-pushed the auto-deferred-connections branch 3 times, most recently from 1616140 to 875cb63 Compare July 10, 2024 14:30
@MiKom MiKom requested a review from seanharmer July 10, 2024 21:21
Connection invocations are now evaluated automatically in the event
loop. Any time an invocation is enqueued using the event loop's
connection evaluator, the event loop is woken up.

This required a KDUtils-specific ConnectionEvaluator.

When given event loop is destroyed, it sets a reference in the evaluator
to null. It's a defensive measure for the future to prevent misuse of
lingering evaluators in case the user deletes the event loop first.

AbstractEventLoop::waitForEvents is not pure abstract anymore as it
ensures evaluation of slot invocations.

Removed one copypasted comment in android event loop impl.
@MiKom MiKom force-pushed the auto-deferred-connections branch from 875cb63 to 2bec342 Compare July 12, 2024 08:20
@MiKom MiKom merged commit 9104992 into KDAB:main Jul 12, 2024
20 checks passed
@MiKom MiKom deleted the auto-deferred-connections branch July 12, 2024 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants