Skip to content
New issue

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

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

Already on GitHub? # to your account

Allow restarting Application #1700

Merged
merged 1 commit into from
Apr 6, 2021
Merged

Allow restarting Application #1700

merged 1 commit into from
Apr 6, 2021

Conversation

djeedai
Copy link
Contributor

@djeedai djeedai commented Apr 5, 2021

Allow the Application to be restarted after it finished running, by
ensuring it releases to false the atomic check for app initialization.

On Windows platform, additionally ensure the window class is only
registered once per process run, as duplicate registration will fail.

This enables writing unit tests for druid-shell, which otherwise cannot
be run in batch. This however still require the use of
--test-threads=1 to prevent parallel testing, which this change does
not cover.

Bug: #771

Allow the `Application` to be restarted after it finished running, by
ensuring it releases to false the atomic check for app initialization.

On Windows platform, additionally ensure the window class is only
registered once per process run, as duplicate registration will fail.

This enables writing unit tests for druid-shell, which otherwise cannot
be run in batch. This however still require the use of
`--test-threads=1` to prevent parallel testing, which this change does
not cover.

Bug: linebender#771
@josh-audio josh-audio added the S-needs-review waits for review label Apr 5, 2021
Copy link
Member

@cmyr cmyr left a comment

Choose a reason for hiding this comment

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

Looks reasonable, thanks!

@cmyr cmyr merged commit 0fd0c5a into linebender:master Apr 6, 2021
@maan2003 maan2003 removed the S-needs-review waits for review label May 3, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants