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

Scripts: add new commands: blackout:on and blackout:off #998

Merged
merged 2 commits into from Oct 28, 2017

Conversation

janosvitok
Copy link
Contributor

Since scripts are executed within locked InputOutputMap.m_UniverseMutex,
setting blackout must be postponed until that mutex is released.
The convenient place is DumpUniverses().

After scheduling the script loop is interrupted so that the blackout
may be actually changed until the next script step is executed.

I didn't use QTimer::singleShot since this way the timing is more precise.

When blackout state is changed from GUI/VC button, any scheduled change is discarded.

janosvitok and others added 2 commits September 6, 2017 09:28
Since scripts are executed within locked InputOutputMap.m_UniverseMutex,
setting blackout must be postponed until that mutex is released.
The convenient place is DumpUniverses().

After scheduling the script loop is interrupted so that the blackout
may be actually changed until the next script step is executed.

I didn't use QTimer::singleShot since this way the timing is more precise.

When blackout state is changed from GUI/VC button, any scheduled change is discarded.
@mcallegari mcallegari merged commit eea8db1 into mcallegari:master Oct 28, 2017
@janosvitok janosvitok deleted the script-blackout branch January 2, 2018 20:30
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.

None yet

2 participants