This website works better with JavaScript.
Home
Help
Sign In
animation
/
text_canvas
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
3
Wiki
Activity
Browse Source
Throw an RAII lock around the conveyor to avoid a race condition
dev
v1.1.1
Mike
5 months ago
parent
e8c4e012fd
commit
80253ebcb2
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
TextCanvas.py
+ 2
- 1
TextCanvas.py
View File
@ -105,7 +105,8 @@ class TextCanvas:
# So far simply does maintenance once per second
while
self
.
__conveyor_enabled
is
True
:
self
.
__fps_samples
.
append
(
0
)
with
RAIILock
(
self
.
__lock
)
:
self
.
__fps_samples
.
append
(
0
)
time
.
sleep
(
1
)
Write
Preview
Loading…
Cancel
Save