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

Locking for Controllable objects #23

Open
SimonHeybrock opened this issue Nov 16, 2015 · 0 comments
Open

Locking for Controllable objects #23

SimonHeybrock opened this issue Nov 16, 2015 · 0 comments

Comments

@SimonHeybrock
Copy link
Contributor

EventGenerator reads meta data (attributes) from a base generator (which in turn can inherit from Controllable). Next, it calls get_events(), potentially several times, to obtain all events for a pulse. If meta data changes between (or within) these calls results may be off (mainly for large parameter changes).

Thus we need to lock the base generator from changes while generating data for a pulse. One option would be to put add lock() and unlock() methods to Controllable. The lock would be checked by Controllable before calling setattr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant