10000 Use an RLock to avoid deadlock when building docs as reported by @jul… · matplotlib/matplotlib@390c1fb · GitHub
[go: up one dir, main page]

Skip to content

Commit 390c1fb

Browse files
committed
Use an RLock to avoid deadlock when building docs as reported by @juliantaylor in #852.
1 parent eb0ded7 commit 390c1fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_agg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class RendererAgg(RendererBase):
5858
# draw at at time and so the font cache is used by only one
5959
# renderer at a time
6060

61-
lock = threading.Lock()
61+
lock = threading.RLock()
6262
_fontd = maxdict(50)
6363
def __init__(self, width, height, dpi):
6464
if __debug__: verbose.report('RendererAgg.__init__', 'debug-annoying')

0 commit comments

Comments
 (0)
0