Skip to content

ndk-glue: Document lock behaviour in Event and ensure pointer equality#174

Merged
msiglreith merged 1 commit intomasterfrom
glue-lock-docs
Aug 7, 2021
Merged

ndk-glue: Document lock behaviour in Event and ensure pointer equality#174
msiglreith merged 1 commit intomasterfrom
glue-lock-docs

Conversation

@MarijnS95
Copy link
Member

This completes #134 by applying the same pointer-equality check in on_input_queue_destroyed to on_window_destroyed, and documents when the user should hold on to or release any of the RWLocks to ensure proper lifetimes for dependencies like surfaces in graphics APIs.

This completes #134 by applying the same pointer-equality check in
`on_input_queue_destroyed` to `on_window_destroyed`, and documents when
the user should hold on to or release any of the `RWLock`s to ensure
proper lifetimes for dependencies like surfaces in graphics APIs.
@@ -122,8 +122,16 @@ pub enum Event {
WindowCreated,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add some docs about acquiring and holding the lock here too? And on InputQueueCreated?

@msiglreith msiglreith merged commit 66eb8ca into master Aug 7, 2021
@MarijnS95 MarijnS95 deleted the glue-lock-docs branch August 7, 2021 21:44
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