Skip to content

Allow restarting Application#1700

Merged
cmyr merged 1 commit intolinebender:masterfrom
djeedai:app_restart
Apr 6, 2021
Merged

Allow restarting Application#1700
cmyr merged 1 commit intolinebender:masterfrom
djeedai:app_restart

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
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.

4 participants