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

Remove plot locking. #2217

Closed
wants to merge 2 commits into from
Closed

Conversation

bjlittle
Copy link
Member

@bjlittle bjlittle commented Oct 26, 2016

This PR addresses the post-merge issues raised by @dkillick on #2206.

Locking at the iris plot level will not guarantee to the user thread-safe plotting. There is still the possibility of an iris plot using an mpl figure from a different thread in certain circumstances. In the case of #2206, the implementation introduced a locking mechanism at the iris plotting api level, which is in fact at too low a level.

If a user insists on using iris plotting in a threaded context, then we should advocate that they take responsibility for locking themselves (which, to be fair, is pretty simple to do) in combination with creating the target mpl figure/axes.

Note that, for clarity, we do require to maintain non re-entrant locking at the individual graphics test case level to avoid the issues raised in #2195.

Closes #2210.

marqh and others added 2 commits October 25, 2016 18:58
* move stock arrays to test data
@bjlittle bjlittle added this to the v1.11 milestone Oct 26, 2016
@QuLogic
Copy link
Member

QuLogic commented Oct 26, 2016

Wrong merge target.

@bjlittle bjlittle changed the base branch from master to v1.11.x October 26, 2016 22:50
@bjlittle bjlittle closed this Oct 26, 2016
@bjlittle bjlittle deleted the purge-plot-lock branch November 12, 2019 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants