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

Add reentrantGuard.callExclusively() #178

Merged
merged 1 commit into from
Dec 27, 2022
Merged

Conversation

tshino
Copy link
Owner

@tshino tshino commented Dec 27, 2022

This is a part of the implementation of Background recording API #176.

To provide APIs for this extension and make them provide reasonable guarantees for their functionalities, they should not fail regardless of whether the user is interacting with this extension at the moment the API is invoked by other extensions.

For example, #176 will provide a new API to enable/disable background recording mode. The mode should not change during any execution of wrapper or playback commands to avoid generating an inconsistent internal state of the keystroke recording mechanism. As a solution to these requirements, this PR introduces reentrantGuard.callExclusively().

@tshino tshino merged commit 2ad0a6f into main Dec 27, 2022
@tshino tshino deleted the exclusive-function-call branch December 27, 2022 13:55
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.

1 participant